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.
Type Parameters
Section titled “Type Parameters”S extends string
Parameters
Section titled “Parameters”Returns
Section titled “Returns”number