Skip to content

hslDistance

hslDistance(hslA, hslB): number

Defined in: packages/math-color/src/spaces/hsl/distance.ts:7

Weighted HSL distance. Combines hue, saturation, and lightness with hue double-weighted. Range [0, ~2.29].

Hsl

Hsl

number