Code: Select all
function love.draw()
local point1 = { x = 10.5, y = 10.5 }
local point2 = { x = 200.5, y = 10.5 }
local point3 = { x = 200.5, y = 200.5 }
love.graphics.setColor(0, 0, 255)
love.graphics.polygon("fill", point1.x, point1.y, point2.x, point2.y, point3.x, point3.y)
love.graphics.setColor(255, 255, 255, 128)
love.graphics.point(point1.x, point1.y)
love.graphics.point(point2.x, point2.y)
love.graphics.point(point3.x, point3.y)
end