ChannelMixer

Static Class in Zigurous.ColorPro

Declaration

public static class ChannelMixer

Description

Multiplies the RGB channels of a color by a matrix.

Static Properties

identityMatrixThe 3x3 identity matrix.
protanopiaMatrixThe channel matrix to simulate protanopia color blindness.
protanomalyMatrixThe channel matrix to simulate protanomaly color blindness.
deuteranopiaMatrixThe channel matrix to simulate deuteranopia color blindness.
deuteranomalyMatrixThe channel matrix to simulate deuteranomaly color blindness.
tritanopiaMatrixThe channel matrix to simulate tritanopia color blindness.
tritanomalyMatrixThe channel matrix to simulate tritanomaly color blindness.
achromatopsiaMatrixThe channel matrix to simulate achromatopsia color blindness.
achromatomalyMatrixThe channel matrix to simulate achromatomaly color blindness.

Extension Methods

ChannelMixApplies a 3x3 matrix to the RGB channels of the color. Values are clamped to the range [0..1].