Square

Renders a square with customizable size, position, rotation, fill color, and outline. Its four vertices can be used to create instancing groups of other shapes.
Property name
Description
Compatible datatype
side
Side of the square
number
x
Horizontal position
number
y
Vertical position
number
rot
Rotation
number
color
Fill color
color
outline
Outline color
color
strokeWidth
Outline width
number
origin
Center point of the shape. Defaults to (0, 0). Changing it moves the shape’s pivot without affecting its x and y position.
point
instance
Instancing target
figure
instanceIndex
Displays the instance with the given index number
number
zindex
Controls which element appears on top when elements overlap; higher values sit above lower ones.
number
Last updated