linearRgbToOklab
linearRgbToOklab(
inputColor):Node<"vec4">
Defined in: packages/nodes/src/color/oklab.ts:103
Convert linear sRGB to OKLAB color space. Input color should be in linear space (not gamma-encoded sRGB).
Parameters
Section titled “Parameters”inputColor
Section titled “inputColor”Node <"vec4">
Linear RGB color (vec4, alpha preserved)
Returns
Section titled “Returns”Node <"vec4">
vec4(L, a, b, alpha) where L is 0..1, a and b are roughly -0.5..0.5
Example
Section titled “Example”// Convert linear color to OKLABlinearRgbToOklab(someLinearColor)