<static> create(parent, width, height, id, skipPool) → {HTMLCanvasElement}
Creates a canvas
DOM element. The element is not automatically added to the document.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
parent | object | The object that will own the canvas that is created. | ||
width | number | <optional> | 256 | The width of the canvas element. |
height | number | <optional> | 256 | The height of the canvas element.. |
id | string | <optional> | (none) | If specified, and not the empty string, this will be set as the ID of the canvas element. Otherwise no ID will be set. |
skipPool | boolean | <optional> | false | If |
Returns
HTMLCanvasElement -
The newly created canvas element.
- Source code: utils/Canvas.js (Line 16)
Please login to continue.