Phaser API Documentation

  Version: 
drawFrame(key, [frame], [x], [y], [update])

Description:

Draws the given texture frame to this CanvasTexture, then updates the internal ImageData buffer and arrays.

Parameters:

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.

Returns:
Description:

This CanvasTexture.

Since: 3.16.0