love.graphics.rectangle

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.

Modes

fill fills the rectangle
Some description goes here.
line only draws an outline
Some description goes here.

Examples

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

See Also


Other Languages