Skip to content

textmode.js / Textmodifier / useTileColors

Method: useTileColors() ​

ts
useTileColors(enabled?): boolean | void;

Configure authored tileset color preservation on the base layer.

This is equivalent to calling TextmodeLayer.useTileColors on the base layer.

When disabled (default), tilesets on the base layer are recolored through the current character (charColor) and cell (cellColor) colors.

Parameters ​

ParameterTypeDescription
enabled?booleanWhether to preserve authored tileset colors.

Returns ​

boolean | void

Current base-layer tileset-color mode when called without arguments.

Example ​