Exemplo 1 – Primitivas Geométricas
function love.draw()
-- desenha retangulo
love.graphics.setColor(0, 134, 0)
love.graphics.rectangle("fill", 100, 100, 600, 400)
-- desenha losango
love.graphics.setColor(252, 252, 0)
love.graphics.polygon("fill", 120, 300, 400, 120,
680, 300, 400, 480)
-
- desenha circulo
love.graphics.setColor(0, 0, 140)
love.graphics.circle("fill", 400, 300, 120, 100)
end