textmode.js / layering / TextmodeLayerOptions
Interface: TextmodeLayerOptions
Options for configuring a new TextmodeLayer via TextmodeLayerManager.add.
Properties
| Property | Type | Description |
|---|---|---|
blendMode? | TextmodeLayerBlendMode | The blend mode used when rendering this layer. Default is 'normal'. |
fontSize? | number | The font size for the layer's text. Default is 16. |
fontSource? | string | TextmodeFont | Source for the font to use in this layer. Can be a URL/path to a font file, or an existing TextmodeFont instance. |
offsetX? | number | The horizontal offset of the layer in pixels. Default is 0. |
offsetY? | number | The vertical offset of the layer in pixels. Default is 0. |
opacity? | number | The opacity of the layer, between 0 (fully transparent) and 1 (fully opaque). Default is 1. |
rotationZ? | number | The z-rotation of the layer in degrees around its center. Default is 0. |
visible? | boolean | Whether the layer is visible. Default is true. |