penFor method

double penFor(
  1. double s
)

The usable pass-1 width on a key whose short side is s (≤ s / 24).

Implementation

double penFor(double s) => math.max(0, math.min(outlineWidth, s / 24));