Skip to content

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, offsets, opacity, and blend modes.

Access this manager via textmodifier.layers.

Accessors

AccessorDescription
allAll user-created layers in stack order.
baseBase layer rendered at the bottom of the stack.
resultFramebufferFramebuffer containing the most recent composited result.

Methods

MethodDescription
addCreate a layer at the top of the stack.
clearRemove and dispose all user-created layers.
moveMove a user-created layer to a new index in the stack.
removeRemove and dispose a user-created layer.
swapSwap two user-created layers.