clearKeyDistinctness function

double clearKeyDistinctness(
  1. ThemeSpec spec,
  2. KeyColors clear
)

How far clear stands apart from spec's other key faces, as a fraction of the AC floors (clearMinCvdDeltaE, clearMinDeltaE): ≥ 1 meets them all (tests and diagnostics).

Implementation

double clearKeyDistinctness(ThemeSpec spec, KeyColors clear) =>
    _distinctness(spec, clear, backgroundSamples(spec.background));