Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

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
Source by love2d.org #
 
PREVIOUS NEXT
Tagged: #draw #circle
ADD COMMENT
Topic
Name
5+6 =