isCieLabAchromatic
isCieLabAchromatic(
chroma,chromaThreshold):boolean
Defined in: packages/math-color/src/spaces/lab-d50/is-achromatic.ts:25
Test if a CIE LAB color is achromatic (gray) based on its chroma value and a specified chroma threshold.
Parameters
Section titled “Parameters”chroma
Section titled “chroma”number
The chroma value of the CIE LAB color.
chromaThreshold
Section titled “chromaThreshold”number | IsLabAchromaticStrictness
The chroma threshold below which a color is considered achromatic. Colors with chroma less than this value are treated as gray.
Returns
Section titled “Returns”boolean
True if the color is achromatic (chroma < chromaThreshold), false otherwise.