{{newin|[[0.10.0]]|100|type=function}}
Draws an ellipse.
== Function ==
=== Synopsis ===
<source lang="lua">
love.graphics.ellipse( mode, x, y, radiusx, radiusy )
</source>
=== Arguments ===
{{param|DrawMode|mode|How to draw the ellipse.}}
{{param|number|x|The position of the center along x-axis.}}
{{param|number|y|The position of the center along y-axis.}}
{{param|number|radiusx|The radius of the ellipse along the x-axis (half the ellipse's width).}}
{{param|number|radiusy|The radius of the ellipse along the y-axis (half the ellipse's height).}}
=== Returns ===
Nothing.
== Function ==
=== Synopsis ===
<source lang="lua">
love.graphics.ellipse( mode, x, y, radiusx, radiusy, segments )
</source>
=== Arguments ===
{{param|DrawMode|mode|How to draw the ellipse.}}
{{param|number|x|The position of the center along x-axis.}}
{{param|number|y|The position of the center along y-axis.}}
{{param|number|radiusx|The radius of the ellipse along the x-axis (half the ellipse's width).}}
{{param|number|radiusy|The radius of the ellipse along the y-axis (half the ellipse's height).}}
{{param|number|segments|The number of segments used for drawing the ellipse.}}
=== Returns ===
Nothing.
== Examples ==
=== The effect of the segment argument ===
<source lang="lua">
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
</source>
== See Also ==
* [[parent::love.graphics]]
[[Category:Functions]]
[[Sub-Category::Drawing| ]]
{{#set:Description=Draws an ellipse.}}
== Other Languages ==
{{i18n|love.graphics.ellipse}}