Difference between revisions of "love.graphics.circle"

m
Line 23: Line 23:
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:Drawing]]
 
{{#set:Description=Draws a circle.}}
 
{{#set:Description=Draws a circle.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.circle}}
 
{{i18n|love.graphics.circle}}

Revision as of 23:50, 28 March 2013

Draws a circle.

Function

Synopsis

love.graphics.circle( mode, x, y, radius, segments )

Arguments

DrawMode mode
How to draw the circle.
number x
The position of the center along x-axis.
number y
The position of the center corner along y-axis.
number radius
The radius of the circle.
number segments (max(10, radius))
The number of segments used for drawing the circle.

Returns

Nothing.

Examples

An amazing circle.

function love.draw()
	love.graphics.circle("fill", 300, 300, 50)
end

See Also


Other Languages