Skip to content

textmode.js / Textmodifier / loadImage

Method: loadImage()

ts
loadImage(src): Promise<TextmodeImage>;

Load an image source that can be drawn with image.

Parameters

ParameterTypeDescription
srcstringImage URL.

Returns

Promise<TextmodeImage>

The loaded TextmodeImage.

Example