Skip to content

Text

Text spawned by spawnText: change it with set, restyle it with tint and alpha, remove it with destroy.

alpha: number

Opacity of every character, 0–1. Setting it fades the text (blink, fade out).


readonly entities: number[]

One sprite entity per visible character.


tint: number

Color of every character, 0xRRGGBB. Setting it recolors the text.


readonly value: string


readonly width: number

Width of the widest line, in pixels.

set(value): void

Replaces the text, keeping position and style.

string

void