← Previous Next →

Scrawl-canvas v8 - Canvas test 074

Import and use ImageBitmap objects as assets

To import more images, drag-and-drop image files over the canvas

Screen capture image of the demo canvas

To note: Javascript is not running in this browser environment. The canvas element is ignored; instead a placeholder image displays where the canvas would have appeared.

Test purpose

Touch test: should work as expected - though flicking an entity may lead to it moving beyond the canvas border and out of sight!

Annotated code