Skip to content

rgb1ToLinearRgb

rgb1ToLinearRgb<SE, SL>(value, profile): InSpace<RgbCoords, SL>

Defined in: packages/math-color/src/conversions/lrgb-rgb1.ts:34

Converts RGB values in the range [0, 1] to linear RGB values using the specified RGB color space profile.

SE extends string

SL extends string

RgbCoords

The RGB color in the range [0, 1].

RgbProfile<SE, SL>

The RGB color space profile (determines the gamma function).

InSpace<RgbCoords, SL>

The corresponding linear RGB color in the range [0, 1].