SRGB_FORWARD_TRANSFORM

const
Color & Theming

sRGB gamma-expansion function (linear → sRGB encoded). Applies the IEC 61966-2-1 piecewise formula: values ≤ 0.0031308 are linearised as C × 12.92; values above use the power-curve branch 1.055 × C^(1/2.4) − 0.055.

TypeScript

Definition

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

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

Usage

Examples

Ready-to-paste code snippets using this constant.

Converting a linear channel value to sRGB

typescript