#include <color.h>
Public Attributes | |
Scalar | array [20] |
4x5 matrix for transforming the color and alpha components of a Bitmap.
[ a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t ]
When applied to a color [R, G, B, A], the resulting color is computed as:
R’ = a*R + b*G + c*B + d*A + e; G’ = f*R + g*G + h*B + i*A + j; B’ = k*R + l*G + m*B + n*A + o; A’ = p*R + q*G + r*B + s*A + t;
That resulting color [R’, G’, B’, A’] then has each channel clamped to the 0 to 1 range.
Scalar impeller::ColorMatrix::array[20] |
Definition at line 118 of file color.h.
Referenced by impeller::Color::ApplyColorMatrix(), impeller::GetCPUColorFilterProc(), impeller::ColorFilterAtlasContents::Render(), impeller::testing::TEST_P(), and impeller::WrapWithGPUColorFilter().