Difference between revisions of "love.graphics.circle"
m (1 revision: Imported docs from potato.) |
|||
Line 1: | Line 1: | ||
− | + | Draws a circle. | |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
Line 24: | Line 24: | ||
* [[parent::love.graphics]] | * [[parent::love.graphics]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=}} | + | {{#set:Description=Draws a circle.}} |
Revision as of 16:17, 14 February 2010
Draws a circle.
Contents
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