Skip to content

textmode.js / Textmodifier / rotateZ

Method: rotateZ()

ts
rotateZ(degrees?): number | void;

Set Z-axis rotation for subsequent shape drawing, or get the current angle.

All geometries rotate around the center of the shape.

Parameters

ParameterTypeDescription
degrees?numberRotation angle in degrees around the Z axis.

Returns

number | void

Current Z-axis rotation in degrees when called without arguments.

Example