Skip to content

textmode.js / Textmodifier / charRotation

Method: charRotation() ​

ts
charRotation(degrees?): number | void;

Set the character rotation for subsequent drawing, or get the current angle.

Parameters ​

ParameterTypeDescription
degrees?numberRotation angle in degrees.

Returns ​

number | void

Current rotation angle in degrees when called without arguments.

Example ​