Skip to content

textmode.js / layering / TextmodeLayerOptions

Interface: TextmodeLayerOptions

Options for configuring a new TextmodeLayer via TextmodeLayerManager.add.

Properties

PropertyTypeDescription
blendMode?TextmodeLayerBlendModeThe blend mode used when rendering this layer. Default is 'normal'.
fontSize?numberThe font size for the layer's text. Default is 16.
fontSource?string | TextmodeFontSource for the font to use in this layer. Can be a URL/path to a font file, or an existing TextmodeFont instance.
offsetX?numberThe horizontal offset of the layer in pixels. Default is 0.
offsetY?numberThe vertical offset of the layer in pixels. Default is 0.
opacity?numberThe opacity of the layer, between 0 (fully transparent) and 1 (fully opaque). Default is 1.
rotationZ?numberThe z-rotation of the layer in degrees around its center. Default is 0.
visible?booleanWhether the layer is visible. Default is true.