Skip to content

labMix

labMix<S>(a, b, t): InSpace<LabCoords, S>

Defined in: packages/math-color/src/models/lab.ts:41

Linearly interpolates between two Lab-family colours in the same space. Identical geometry for OKLab and CIE L_a_b*.

S extends string

InSpace<LabCoords, S>

Start colour (t = 0).

InSpace<LabCoords, S>

End colour (t = 1).

number

Interpolation factor in [0, 1].

InSpace<LabCoords, S>