Polygon or partial polygon shape options object that extends
OBJ_Generic (without drawType)
sidesnumber — (4)
radiusnumber — (1)
rotationnumber — shape rotation during vertex definition
(different to a rotation step in a trasform) (0)
offsetTypeParsablePoint — shape center offset from origin
during vertex definition (different to a translation step in a transform)
([0, 0])
sidesToDrawnumber — number of sides to draw (all sides)
angleToDrawnumber — same as sidesToDraw but using angle for
the definition (2π)
direction1 | -1 — direction to draw polygon where 1 is
counter clockwise and -1 is clockwise (1)
center. This is different to position or transform as these translate the
vertices on each draw. ([0, 0])
drawBorderBuffer(number | TypeParsableBorder) & TypeParsableBorder — override the OBJ_Generic drawBorderBuffer with number to make the
drawBorderBuffer a polygon that is wider by number (0)
Polygon or partial polygon shape options object that extends OBJ_Generic (without
drawType)sidesnumber— (4)radiusnumber— (1)rotationnumber— shape rotation during vertex definition (different to a rotation step in a trasform) (0)offsetTypeParsablePoint — shape center offset from origin during vertex definition (different to a translation step in a transform) ([0, 0])sidesToDrawnumber— number of sides to draw (all sides)angleToDrawnumber— same assidesToDrawbut using angle for the definition (2π)direction1|-1— direction to draw polygon where 1 is counter clockwise and -1 is clockwise (1) center. This is different to position or transform as these translate the vertices on each draw. ([0, 0])lineOBJ_LineStyleSimple — line style optionsdrawBorderBuffer(number | TypeParsableBorder) & TypeParsableBorder— override the OBJ_GenericdrawBorderBufferwithnumberto make the drawBorderBuffer a polygon that is wider bynumber(0)See
To test examples, append them to the boilerplate
Example
Example
Example