ColorMatrix.invert constructor

ColorMatrix.invert()

Returns an invert transform.

Implementation

factory ColorMatrix.invert() {
  return ColorMatrix(const <double>[
    -1,
    0,
    0,
    0,
    255,
    0,
    -1,
    0,
    0,
    255,
    0,
    0,
    -1,
    0,
    255,
    0,
    0,
    0,
    1,
    0,
  ]);
}