Class Rectangle
A rectangle.
Used primarily for testing purpose.
Class Rectangle
rectangle:new () | Constructor. |
Class Rectangle
Represents a rectangle.
- rectangle:new ()
-
Constructor. These are properties (in addition to the list in Block:new) relevant for this type of block:
w
: a non-negative integer. The width of the rectangle. Default is 10.h
: a non-negative integer. The height of the rectangle. Default is 10.color
: a color like in love2d (the table variant). The rectangle is filled with this color.
Usage:
local r = ui.Rectangle { w = 100, h = 50, color = { 0, 0, 1, 1 }, }