SRGB_FORWARD_MATRIX

const
Color & Theming

XYZ-to-sRGB linear transformation matrix (3×3) used in the color pipeline to convert CIE XYZ tristimulus values to linear sRGB channel values before gamma expansion via SRGB_FORWARD_TRANSFORM.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Entries

Values

All entries in this constant. Click a value to copy it to clipboard.

[3.2406, -1.5372, -0.4986]
Red channel row of the XYZ→sRGB matrix.
[-0.9689, 1.8758, 0.0415]
Green channel row of the XYZ→sRGB matrix.
[0.0557, -0.2040, 1.0570]
Blue channel row of the XYZ→sRGB matrix.

Ecosystem

Used by

Composables and components that consume this constant.

Usage

Examples

Ready-to-paste code snippets using this constant.

Applying the XYZ→sRGB matrix (internal use)

typescript