linearRgbToOklab
linearRgbToOklab<
SE,SL>(value,rgbProfile):Oklab
Defined in: packages/math-color/src/conversions/oklab-lrgb.ts:32
Converts RGB values in the range [0, 1] to OKLab using the specified RGB color space profile.
Type Parameters
Section titled “Type Parameters”SE extends string
SL extends string
Parameters
Section titled “Parameters”The RGB color in the range [0, 1].
rgbProfile
Section titled “rgbProfile”RgbProfile<SE, SL>
The RGB color space profile of the input RGB color.
Returns
Section titled “Returns”The corresponding OKLab color.