textmode.js / layering / TextmodeLayer / rotateZ
Method: rotateZ()
ts
rotateZ(z?): number | void;Set or get this layer's compositing rotation in degrees.
The rotation is applied during compositing around the center of the layer's rectangular bounds. The rotation origin remains at the center even when an offset is applied.
Parameters
| Parameter | Type | Description |
|---|---|---|
z? | number | Rotation angle in degrees. Positive values rotate clockwise. |
Returns
number | void
Current rotation in degrees when called without arguments.