Skip to content

textmode.js / Textmodifier / char

Method: char()

Call Signature

ts
char(): string;

Current character string used for drawing.

Returns

string

The active character string.

Example

Call Signature

ts
char(value): void;

Set the character used by subsequent drawing operations. Accepts a single character string or a character index in the current font.

Parameters

ParameterTypeDescription
valuestring | numberCharacter string or index in the current font.

Returns

void

Example