Difference between revisions of "love.graphics.rectangle"

m
m
Line 13: Line 13:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 
== Modes ==
 
{{param|fill|mode|fills the rectangle}}
 
{{param|line|mode|only draws an outline}}
 
  
 
== Examples ==  
 
== Examples ==  

Revision as of 23:24, 7 May 2013

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.

Examples

 love.graphics.rectangle("fill", 50, 50, 60, 120 )

See Also


Other Languages