Skip to content

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 ​

ParameterTypeDescription
sourceTextmodeSourceImage, video, dynamic texture source, or textmode framebuffer.

Returns ​

void

Example ​

Call Signature ​

ts
texture(source): void;

Parameters ​

ParameterType
sourceTextmodeFramebuffer

Returns ​

void