Contents

ColorMatrix

A matrix to use in an RGBA color transformation.

Declaration

@frozen struct ColorMatrix

Overview

The matrix has five columns, each with a red, green, blue, and alpha component. You can use the matrix for tasks like creating a color transformation GraphicsContext.Filter for a GraphicsContext using the colorMatrix(_:) method.

Topics

Creating an identity matrix

First column

Second column

Third column

Fourth column

Fifth column

See Also

Applying blur and shadows