Skip to main content

scale

scale() 

Scales the transformation matrix by the given factor(s).

// Scale the y-axis
scale(y: 50%)
circle((0,0))

..args:

โ€‹

A single value to scale the transformation matrix by or per axis

scaling factors. Accepts a single float or ratio value or any combination of the named arguments x, y and z to set per axis scaling factors. A ratio of 100% is the same as the value 11.

origin:

Default: noneโ€‹

Origin to rotate around, or (0, 0, 0) if set to none.