oklabIsAchromatic
oklabIsAchromatic(
chroma,chromaThreshold):boolean
Defined in: packages/math-color/src/spaces/oklab/is-achromatic.ts:26
Test if an OKLab chroma value is achromatic (gray) based on a specified chroma threshold.
Parameters
Section titled “Parameters”chroma
Section titled “chroma”number
The chroma value of the OKLab 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.