textmode.js / Textmodifier / image
Method: image()
ts
image(
source,
width?,
height?): void;Draw a framebuffer, image, video, or texture source to the currently bound framebuffer.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | | TextmodeFramebuffer | TextmodeImage | TextmodeTexture | TextmodeVideo | Source to render. |
width? | number | Width in grid cells. Defaults to an aspect-ratio-preserving fit. |
height? | number | Height in grid cells. Defaults to an aspect-ratio-preserving fit. |
Returns
void