Function: createCanvas()
createCanvas(
element
,width
,height
):HTMLCanvasElement
Create a canvas and append it to the element
Parameters
• element: Element
| HTMLDivElement
An HTML Element
• width: number
= 512
• height: number
= 512
Returns
HTMLCanvasElement
canvas - A Canvas DOM element
Defined in
packages/core/src/RenderingEngine/helpers/getOrCreateCanvas.ts:17