Difference between revisions of "love.graphics.rectangle"

m (1 revision: Importing from potato (again).)
Line 1: Line 1:
 
 
Draws a rectangle.
 
Draws a rectangle.
 
== Function ==
 
== Function ==
Line 18: Line 17:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Draws a rectangle.}}
 
{{#set:Description=Draws a rectangle.}}
 +
== Other Languages ==
 +
{{i18n|love.graphics.rectangle}}

Revision as of 20:18, 18 November 2010

Draws a rectangle.

Function

Synopsis

love.graphics.rectangle( mode, x, y, width, height )

Arguments

DrawMode mode
How to draw the rectangle.
number x
The position of top-left corner along x-axis.
number y
The position of top-left corner along y-axis.
number width
Width of the rectangle.
number height
Height of the rectangle.

Returns

Nothing.

See Also

Other Languages