Skip to content

textmode.synth.js / SynthSource / char

Method: char()

ts
char(source): this;

Set the character indices using a character source chain. The number of characters is determined by charMap() if defined, otherwise falls back to the total characters in the layer's font.

Parameters

ParameterTypeDescription
sourceSynthSourceA synth source producing character indices

Returns

this

The SynthSource for chaining

Example