Scale
Scales all nested geometry from the origin. The scale is scoped — it only affects blocks inside its body slot.
Block
Interactive preview is available in the interactive reader.
Parameters
X- Horizontal scale factor. 1 = unchanged, 2 = double width, 0.5 = half width.
Y- Vertical scale factor. 1 = unchanged, 2 = double depth, 0.5 = half depth.
body- Statement slot — geometry and operations affected by this scaling.
How it works
Scale multiplies all coordinates of nested geometry by the given factors. This stretches or compresses shapes along the X and Y axes independently. A scale of 1 means no change; values above 1 enlarge, below 1 shrink.
Common uses
| Scale X | Scale Y | Effect |
|---|---|---|
| 2 | 1 | Stretch horizontally (ellipse from circle) |
| 1 | 2 | Stretch vertically |
| 0.5 | 0.5 | Half size uniformly |
| -1 | 1 | Mirror horizontally |