Documentation / spryte / colorMatrix
Function: colorMatrix()
colorMatrix(
m):Filter
Defined in: filters.ts:159
Colour matrix: 20 numbers, four rows of [r, g, b, a, offset] (offset 0..1), applied to unpremultiplied colour. WebGL2 only; on Canvas 2D this one draws unfiltered. The named filters below work on both.
Parameters
m
readonly number[]