paperWashLabelContrast function
The lowest label contrast of p's four key groups under the wash
tide line rim (any alpha) laid over the face.
Implementation
double paperWashLabelContrast(Palette p, int rim) {
var m = double.infinity;
for (final k in [p.digit, p.operator, p.equals, p.function]) {
final r = contrastRatio(k.label, compositeOver(rim, k.face | 0xFF000000));
if (r < m) m = r;
}
return m;
}