Phaser API Documentation

  Version: 
source: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | WebGLTexture | Phaser.GameObjects.RenderTexture | Phaser.Textures.DynamicTexture | Phaser.Types.Textures.CompressedTextureData

Description:

The source of the image data.

This is either an Image Element, a Canvas Element, a Video Element, a RenderTexture or a WebGLTexture.

In Phaser 3.60 and above it can also be a Compressed Texture data object.

Type:
HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | WebGLTexture | Phaser.GameObjects.RenderTexture | Phaser.Textures.DynamicTexture | Phaser.Types.Textures.CompressedTextureData
Since: 3.12.0