Draws a circle.
love.graphics.circle( mode, x, y, radius )
DrawMode mode
number x
number y
number radius
Nothing.
love.graphics.circle( mode, x, y, radius, segments )
DrawMode mode
number x
number y
number radius
number segments
Nothing.
function love.draw() love.graphics.setColor(255, 255, 255) love.graphics.circle("fill", 300, 300, 50, 100) -- Draw white circle with 100 segments. love.graphics.setColor(255, 0, 0) love.graphics.circle("fill", 300, 300, 50, 5) -- Draw red circle with five segments. end
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.graphics.circle