Skip to content

textmode.js / Textmodifier / invert

Method: invert() ​

ts
invert(toggle?): boolean | void;

Toggle character/cell color inversion, or get the current state.

Parameters ​

ParameterTypeDescription
toggle?booleanWhether to invert colors.

Returns ​

boolean | void

Current inversion state when called without arguments.

Example ​