paperHatchContrast function

double paperHatchContrast(
  1. KeyColors op,
  2. int edgeShadePermille
)

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);
}