paperHatchContrast function
Contrast of the operator hatch (the operator edge ink at
edgeShadePermille) against the operator face.
Implementation
double paperHatchContrast(KeyColors op, int edgeShadePermille) {
final face = op.face | 0xFF000000;
final hatch = compositeOver(
withAlpha(op.edge, paperAlpha(edgeShadePermille)),
face,
);
return contrastRatio(hatch, face);
}