textmode.js / Textmodifier / texture
Method: texture()
Call Signature
ts
texture(source): void;Bind a media source or framebuffer as the texture for later geometry draws.
Textured geometry samples the source, converts brightness into glyphs, and uses source conversion settings such as characters, brightnessRange, charColorMode, and cellColorMode.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | TextmodeSource | Image, video, dynamic texture source, or textmode framebuffer. |
Returns
void
Example
Call Signature
ts
texture(source): void;Parameters
| Parameter | Type |
|---|---|
source | TextmodeFramebuffer |
Returns
void