Creates a rectangular game object.
rct = gfx.CreateRectangle(
width,
height,
color,
lineWidth,
lineColor,
lineAlpha,
group )
→ game object: Rectangle
Methods
The following methods are available on the Rectangle object:
alpha → Number: fraction (0..1)
angle → Number: fraction (0..1)
data → Object
graphic → Object
group → String
height → Number: fraction (0..1)
pivotX → Number: fraction (0..1)
pivotY → Number: fraction (0..1)
scaleX → Number: factor
scaleY → Number: factor
Update()
visible → Boolean
width → Number