Answers for "draw circle love2d"

Lua
0

draw circle love2d

-- DrawMode: "fill" or "line"
love.graphics.circle(DrawMode, x, y, radius, segments)

-- Example
function love.draw()
    love.graphics.setColor(1, 0, 0)
    love.graphics.circle("fill", 300, 300, 50, 5) -- Draw red circle with five segments.
end
Posted by: Guest on May-20-2021

Browse Popular Code Answers by Language