Available since LÖVE 0.10.0
This function is not supported in earlier versions.
Draws an ellipse.
love.graphics.ellipse( mode, x, y, radiusx, radiusy )
DrawMode mode
number x
number y
number radiusx
number radiusy
Nothing.
love.graphics.ellipse( mode, x, y, radiusx, radiusy, segments )
DrawMode mode
number x
number y
number radiusx
number radiusy
number segments
Nothing.
function love.draw() love.graphics.setColor(255, 255, 255) love.graphics.ellipse("fill", 300, 300, 75, 50, 100) -- Draw white ellipse with 100 segments. love.graphics.setColor(255, 0, 0) love.graphics.ellipse("fill", 300, 300, 75, 50, 5) -- Draw red ellipse 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.ellipse