Skip to content

labIsAchromatic

labIsAchromatic(chroma, threshold, thresholds): boolean

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

Tests whether a Lab chroma value is achromatic given a space-specific threshold table.

This is the shared implementation; callers should use the space-specific wrappers isOklabAchromatic or isCieLabAchromatic which supply the correct table.

number

Chroma value (output of labChroma).

number | IsLabAchromaticStrictness

Named strictness level or an absolute chroma value.

Record<IsLabAchromaticStrictness, number>

Space-specific named-strictness → absolute-value table.

boolean