Difference between revisions of "love.graphics.circle (简体中文)"

(Created page with "绘制一个圆形. == Function == === Synopsis === <source lang="lua"> love.graphics.circle( mode, x, y, radius, segments ) </source> === Arguments === {{param|DrawMode|mode|如...")
 
(Parent correction.)
Line 21: Line 21:
 
</source>
 
</source>
 
== See Also ==
 
== See Also ==
* [[parent::love.graphics]]
+
* [[parent::love.graphics (简体中文)]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Draws a circle.绘制一个圆形.}}
 
{{#set:Description=Draws a circle.绘制一个圆形.}}

Revision as of 02:35, 15 April 2012

绘制一个圆形.

Function

Synopsis

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

Arguments

DrawMode mode
如何绘制这个圆.
number x
X坐标.
number y
Y坐标.
number radius
圆的半径.
number segments (10)
绘制段数.

Returns

Nothing.

Examples

An amazing circle.

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

See Also


Other Languages