Skip to content

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 ​

ParameterTypeDescription
z?numberRotation angle in degrees. Positive values rotate clockwise.

Returns ​

number | void

Current rotation in degrees when called without arguments.

Example ​