CharTransform:

Describes how to transform each character.

pos?: Vec2

Offset to apply to the position of the text character. Shifts the character's position by the specified 2D vector.

scale?: Vec2 | number

Scale transformation to apply to the text character's current scale. When a number, it is scaled uniformly. Given a 2D vector, it is scaled independently along the X and Y axis.

angle?: number

Increases the amount of degrees to rotate the text character.

color?: Color

Color transformation applied to the text character. Multiplies the current color with this color.

opacity?: number

Opacity multiplication applied to the text character. For example, an opacity of 0.4 with 2 set in the transformation, the resulting opacity will be 0.8 (0.4 × 2).

kaplay logo

Misc

Layer