Phaser API Documentation

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

Description:

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

Parameters:

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.

Returns:
Description:

This CanvasTexture.

Since: 3.16.0