WebCanvasRendererFactory

constructor(canvas: JsAny, keepDisplayAwake: Boolean = true)

Parameters

canvas

the HTMLCanvasElement or OffscreenCanvas to draw into.

keepDisplayAwake

whether the page's screen stays awake while pictures are drawn, and for two seconds after the last one (#238). See WebCanvasVideoRenderer.


constructor(canvas: JsAny)

Keeps the original canvas constructor with display wake enabled.