Function Oklch.isAchromatic

Reports whether chroma is exactly zero.

bool isAchromatic() const pure nothrow @nogc @property @safe;

Use this when exact achromaticity matters. For a caller-selected tolerance, use isNearAchromatic instead.

Example

const gray = Oklchd(0.5, 0.0, OklabHued.fromDegrees(120.0));
assert(gray.isAchromatic);