oklchToLinearRgb
oklchToLinearRgb(
lch):Node<"vec4">
Defined in: packages/nodes/src/color/oklch.ts:57
Convert OKLCH to linear sRGB.
Parameters
Section titled “Parameters”Node <"vec4">
OKLCH as vec4(L, C, H, alpha), H in radians
Returns
Section titled “Returns”Node <"vec4">
Linear RGB color as vec4(r, g, b, alpha)
Example
Section titled “Example”oklchToLinearRgb(oklchColor)