filter.ColorMatrix

filter. filter.ColorMatrix

new filter.ColorMatrix(colorMatrix,)

ColorMatrix filter.
Parameters:
Name Type Description
colorMatrix, array 5×5 matrix. If omitted, defaultValue is a 5×5 identity matrix.
Example
var f = new filter.ColorMatrix();
   var matrix = [
      1, 1, 1, 1, 0,
      0, 1, 1, 1, 0,
      0, 1, 1, 0, 0,
      0, 0, 0, 1, 0
    ];
   var f = new filter.ColorMatrix(matrix);