transformColor method

UvColor? transformColor(
  1. UvColor? color
)

Applies this matrix to color.

Palette and indexed colors are resolved to truecolor before the transform is applied.

Implementation

UvColor? transformColor(UvColor? color) {
  if (color == null || isIdentity) return color;
  final rgb = _resolveRgb(color);
  if (rgb == null) return color;
  return _transformRgb(rgb);
}