Navigation
These archived docs are for Phaser 2.2.2 Phaser 3 docs can be found on newdocs.phaser.io.
Phaser CE docs can be found on the Phaser CE Documentation site.

Constructor

PIXI. ColorMatrixFilter

new ColorMatrixFilter()

The ColorMatrixFilter class lets you apply a 4x4 matrix transformation on the RGBA color and alpha values of every pixel on your displayObject to produce a result with a new set of RGBA color and alpha values. It's pretty powerful!

Source code: pixi/filters/ColorMatrixFilter.js, line 5

Extends

Public Properties

dirty : boolean

Inherited From
Source code: pixi/filters/AbstractFilter.js, line 31

matrix : Array.<Number>

Sets the matrix of the color matrix filter

Type
  • Array.<Number>
Default Value
  • [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]
Source code: pixi/filters/ColorMatrixFilter.js, line 46

padding : number

Inherited From
Source code: pixi/filters/AbstractFilter.js, line 37

Public Methods

syncUniforms()

Syncs the uniforms between the class object and the shaders.

Inherited From
Source code: pixi/filters/AbstractFilter.js, line 60