Phaser API Documentation

  Version: 
setDataSource(data)

Description:

Adds a data source image to this Texture.

An example of a data source image would be a normal map, where all of the Frames for this Texture equally apply to the normal map.

Parameters:

name type description
data HTMLImageElement | HTMLCanvasElement | Array.<HTMLImageElement> | Array.<HTMLCanvasElement>

The source image.

Since: 3.0.0
Source: src/textures/Texture.js (Line 422)