Skip to content

labDistance

labDistance<S>(a, b): number

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

Euclidean distance between two Lab-family colours in the same space.

For OKLab this approximates perceptual ΔE. For CIE L_a_b* prefer CIEDE2000.

S extends string

InSpace<LabCoords, S>

InSpace<LabCoords, S>

number