Plot Image

The plot image function.

Display an Image on the Calliope mini’s LED screen

JavaScript

export function plotImage(_this: micro_bit.Image, xOffset: number)

Parameters

Difference from show image

The show image function has a built in delay of 400ms after display of the image, whereas plot image has no built-in delay.

Example

let img = images.createImage(`
# . . . # # . . . #
. # . # . . # # # .
. . # . . . # # # .
. # . # . . # # # .
# . . . # # . . . #
`)
img.plotImage(0)

See also

create image, show animation, image, show image, scroll image

Edit this page on GitHub