Draws the given texture frame to this CanvasTexture, then updates the internal ImageData buffer and arrays.
name | type | arguments | Default | description |
---|---|---|---|---|
key | string |
The unique string-based key of the Texture. |
||
frame | string | number | <optional> |
The string-based name, or integer based index, of the Frame to get from the Texture. |
|
x | number | <optional> | 0 |
The x coordinate to draw the source at. |
y | number | <optional> | 0 |
The y coordinate to draw the source at. |
update | boolean | <optional> | true |
Update the internal ImageData buffer and arrays. |
This CanvasTexture.