3.1.1.5.1.6 Color Transforms
A Color Transform is a resource that changes a color space similarly to how a 2-D transform changes a coordinate space. The transformation is performed by representing the color as a five-dimensional vector, where the first four values are the red, green, blue, and alpha channels of the color and the last value is 1, and multiplying it by a 5x5 matrix that represents the color transformation. The resulting five-dimensional vector contains the representation of the new color. This protocol specifies only one color transform resource, which is explicitly defined by a 5x5 matrix.
The rasterization of the visual is changed by applying the color transform to the result of rasterizing the visual and its subtree.