canvas()
canvas(
width?,height?):HTMLCanvasElement
Defined in: js-api/ui.ts:145
Creates a canvas element, optionally sized to width × height pixels (both CSS and bitmap size).
Parameters
| Parameter | Type | Default value |
|---|---|---|
width | number | null | null |
height | number | null | null |
Returns
HTMLCanvasElement