Draws the given texture frame to this CanvasTexture, then updates the internal ImageData buffer and arrays.
name | type | arguments | 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> |
The x coordinate to draw the source at. |
y | number | <optional> |
The y coordinate to draw the source at. |
This CanvasTexture.