linearRgbToRgb1
linearRgbToRgb1<
SE,SL>(value,profile):InSpace<RgbCoords,SE>
Defined in: packages/math-color/src/conversions/lrgb-rgb1.ts:13
Converts linear RGB values to RGB values in the range [0, 1] using the specified RGB color space profile.
Type Parameters
Section titled “Type Parameters”SE extends string
SL extends string
Parameters
Section titled “Parameters”The linear RGB color in the range [0, 1].
profile
Section titled “profile”RgbProfile<SE, SL>
The RGB color space profile (determines the gamma function).
Returns
Section titled “Returns”The corresponding RGB color in the range [0, 1].