square()
Extrude a square outline with side s at layer height z.
A convenience wrapper for rect(x, y, z, s, s); the (x, y) anchor follows
rectMode() (default CORNER). Outline only — no infill.
Parameters
| Name | Type | Description |
|---|---|---|
x | number | X position of the anchor in mm (interpreted per rectMode). |
y | number | Y position of the anchor in mm. |
z | number | Layer height in mm. |
s | number | Side length in mm. |
Examples
Syntax
fab.square(x, y, z, s)