textmode.js / layering / TextmodeLayerManager
Class: TextmodeLayerManager
Manages the stack of layers within a Textmodifier instance.
The base layer is always present at the bottom of the stack. User-created layers are added above it and can render with independent grids, fonts, filters, offsets, opacity, and blend modes.
Access this manager via textmodifier.layers.
Accessors
| Accessor | Description |
|---|---|
| all | All user-created layers in stack order. |
| base | Base layer rendered at the bottom of the stack. |
| filters | Filter manager used by this layer stack. |
| resultFramebuffer | Framebuffer containing the most recent composited result. |
Methods
| Method | Description |
|---|---|
| add | Create a layer at the top of the stack. |
| clear | Remove and dispose all user-created layers. |
| move | Move a user-created layer to a new index in the stack. |
| remove | Remove and dispose a user-created layer. |
| swap | Swap two user-created layers. |