Difference between revisions of "love.graphics.circle"

(list of draw modes added)
m (Undo revision 2852 by Adamantos (Talk))
Line 1: Line 1:
 
 
Draws a circle.
 
Draws a circle.
 
== Function ==
 
== Function ==
Line 7: Line 6:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|DrawMode|mode|How to draw the circle. Possible values are: "fill","line"}}
+
{{param|DrawMode|mode|How to draw the circle.}}
 
{{param|number|x|The position of the center along x-axis.}}
 
{{param|number|x|The position of the center along x-axis.}}
 
{{param|number|y|The position of the center corner along y-axis.}}
 
{{param|number|y|The position of the center corner along y-axis.}}
 
{{param|number|radius|The radius of the circle.}}
 
{{param|number|radius|The radius of the circle.}}
 
{{param|number|segments (8)|The number of segments used for drawing the circle.}}
 
{{param|number|segments (8)|The number of segments used for drawing the circle.}}
 
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.

Revision as of 15:08, 1 September 2010

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 (8)
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