Phaser API Documentation

  Version: 
PixelConfig

Description:

An object containing the position and color data for a single pixel in a CanvasTexture.

Properties:
name type description
x number

The x-coordinate of the pixel.

y number

The y-coordinate of the pixel.

color number

The color of the pixel, not including the alpha channel.

alpha number

The alpha of the pixel, between 0 and 1.

Type:
object
Since: 3.16.0