#include <impeller.h>
Public Attributes | |
float | m [20] |
A 4x5 matrix using row-major storage used for transforming color values.
To transform color values, a 5x5 matrix is constructed with the 5th row being identity. Then the following transformation is performed:
The translation column (m[4], m[9], m[14], m[19]) must be specified in non-normalized 8-bit unsigned integer space (0 to 255). Values outside this range will produce undefined results.
The identity transformation is thus:
Some examples:
To invert all colors:
To apply a sepia filter:
To apply a grayscale conversion filter:
Definition at line 601 of file impeller.h.
float ImpellerColorMatrix::m[20] |
Definition at line 602 of file impeller.h.
Referenced by impeller::interop::ImpellerColorFilterCreateColorMatrixNew().