Difference between revisions of "love.graphics.circle"
(the default is actually 10) |
|||
Line 10: | Line 10: | ||
{{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 (10)|The number of segments used for drawing the circle.}} | + | {{param|number|segments (max(10, radius))|The number of segments used for drawing the circle.}} |
=== Returns === | === Returns === | ||
Nothing. | Nothing. |
Revision as of 17:23, 28 September 2012
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 (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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info