Skip to content

textmode.synth.js / SynthSource / charMap

Method: charMap() ​

ts
charMap(chars): this;

Map character indices to a specific character set. This is the primary textmode-native way to define which characters to use.

Parameters ​

ParameterTypeDescription
charsstringA string of characters to map indices to

Returns ​

this

The SynthSource for chaining

Example ​