Difference between revisions of "love.graphics.circle"

m
m
Line 8: Line 8:
 
{{param|DrawMode|mode|How to draw the circle.}}
 
{{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 along y-axis.}}
 
{{param|number|radius|The radius of the circle.}}
 
{{param|number|radius|The radius of the circle.}}
 
{{param|number|segments (max(10, radius))|The number of segments used for drawing the circle.}}
 
{{param|number|segments (max(10, radius))|The number of segments used for drawing the circle.}}

Revision as of 11:23, 24 May 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 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