Function: linearSrgbToOklab()
linearSrgbToOklab(
r
,g
,b
):Oklab
Converts linear sRGB values to Oklab color space.
Parameters
Parameter | Type | Description |
---|---|---|
r | number | The red channel of linear sRGB (0-1). |
g | number | The green channel of linear sRGB (0-1). |
b | number | The blue channel of linear sRGB (0-1). |
Returns
An object with L, a, and b properties in Oklab color space.
Defined in
conversions/components/oklab-linear-srgb.ts:34