fromOklabInto
Convert OKLab to a Color (OKLCH), writing into out (allocation-free). Bit-identical to fromOklab.
import { fromOklabInto } from '@pbroom/color-kit';into.ts:76function fromOklabInto( out: Color, , lab: Oklab,): Color;Parameters
Returns
Colorout
Example
import { fromOklabInto } from '@pbroom/color-kit';
const color = { l: 0, c: 0, h: 0, alpha: 1 };
fromOklabInto(color, { L: 0.7, a: 0, b: 0.1, alpha: 1 });
color; // → { l: 0.7, c: 0.1, h: 90, alpha: 1 }