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 - pixi/filters/ColorMatrixFilter.js, line 5

Extends

Members

dirty :Boolean

Inherited From:
Source - 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 - pixi/filters/ColorMatrixFilter.js, line 46

padding :Number

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

Methods

syncUniforms()

Syncs the uniforms between the class object and the shaders.

Inherited From:
Source - pixi/filters/AbstractFilter.js, line 60
Phaser Copyright © 2012-2014 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Thu Dec 04 2014 11:33:06 GMT-0000 (GMT) using the DocStrap template.