ColorMatrixFilter Class
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!
Constructor
ColorMatrixFilter
()
Methods
syncUniforms
()
Syncs the uniforms between the class object and the shaders.
Properties
dirty
Boolean
fragmentSrc
Array
private
matrix
Array and array of 26 numbers
Sets the matrix of the color matrix filter
Default: [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]
padding
Number
passes
Array an array of filter objects
private
An array of passes - some filters contain a few steps this array simply stores the steps in a liniear fashion. For example the blur filter has two passes blurX and blurY.