@motion-script/core / ColorMatrixFilter
Interface: ColorMatrixFilter
Defined in: attributes/shape/filters/implementations/color-matrix.ts:11
Applies an arbitrary 4×5 color transform in Skia format.
The matrix is row-major with rows [R, G, B, A], each row being [rScale, gScale, bScale, aScale, bias]. Useful for tinting, channel swaps, or any effect not covered by the named filters.
Properties
matrix
matrix:
number[]
Defined in: attributes/shape/filters/implementations/color-matrix.ts:14
4×5 row-major color matrix in Skia format.
type
type:
"colorMatrix"
Defined in: attributes/shape/filters/implementations/color-matrix.ts:12