textmode.js / Textmodifier / invert
Method: invert()
ts
invert(toggle?): boolean | void;Toggle character/cell color inversion, or get the current state.
Parameters
| Parameter | Type | Description |
|---|---|---|
toggle? | boolean | Whether to invert colors. |
Returns
boolean | void
Current inversion state when called without arguments.