name | type | arguments | Default | description |
---|---|---|---|---|
data | array | <optional> | [] |
An array of data, where each row is a string of single values 0-9A-F, or the period character. |
canvas | HTMLCanvasElement | <optional> | null |
The HTML Canvas to draw the texture to. |
palette | Phaser.Types.Create.Palette | <optional> | Arne16 |
The indexed palette that the data cell values map to. |
pixelWidth | number | <optional> | 1 |
The width of each 'pixel' in the generated texture. |
pixelHeight | number | <optional> | 1 |
The height of each 'pixel' in the generated texture. |
resizeCanvas | boolean | <optional> | true |
Should the canvas be resized before the texture is drawn? |
clearCanvas | boolean | <optional> | true |
Should the canvas be cleared before the texture is drawn? |
preRender | Phaser.Types.Create.GenerateTextureCallback | <optional> |
A callback to send the canvas to prior to the texture being drawn. |
|
postRender | Phaser.Types.Create.GenerateTextureCallback | <optional> |
A callback to send the canvas to after the texture has been drawn. |