oklchLightness
oklchLightness(
inputColor,amount):Node<"vec4">
Defined in: packages/nodes/src/color/oklch.ts:142
Adjust lightness in OKLCH space. Perceptually uniform lightness adjustment.
Parameters
Section titled “Parameters”inputColor
Section titled “inputColor”Node <"vec4">
Input color (vec4 with alpha, sRGB)
amount
Section titled “amount”Lightness offset (-1 to 1, 0 = no change)
Returns
Section titled “Returns”Node <"vec4">
Color with adjusted lightness (sRGB)
Example
Section titled “Example”// Brighten in perceptually uniform spaceoklchLightness(texture(tex, uv()), 0.2)