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.
Parameters
Section titled “Parameters”chroma
Section titled “chroma”number
Chroma value (output of labChroma).
threshold
Section titled “threshold”number | IsLabAchromaticStrictness
Named strictness level or an absolute chroma value.
thresholds
Section titled “thresholds”Record<IsLabAchromaticStrictness, number>
Space-specific named-strictness → absolute-value table.
Returns
Section titled “Returns”boolean