love.graphics.rectangle
Draws a rectangle.
love.graphics.rectangle( mode, x, y, width, height )
mode DrawMode How to draw the rectangle.
x number The position of top-left corner along the x-axis.
y number The position of top-left corner along the y-axis.
width number Width of the rectangle.
height number Height of the rectangle.
love.graphics.rectangle( mode, x, y, width, height, rx, ry, segments )
mode DrawMode How to draw the rectangle.
x number The position of top-left corner along the x-axis.
y number The position of top-left corner along the y-axis.
width number Width of the rectangle.
height number Height of the rectangle.
rx number The x-axis radius of each round corner. Cannot be greater than half the rectangle's width.
ry (rx) number The y-axis radius of each round corner. Cannot be greater than half the rectangle's height.
segments (nil) number The number of segments used for drawing the round corners. A default amount will be chosen if no number is given.