pdfInkStrokeWidth function
The drawn width of an ink segment at normalized pressure (0–1) for a
base strokeWidth: 0.4× when barely touching up to 1.6× at full
pressure, the base width at 0.5. Shared by PdfAnnotationEditing.addInk
appearances and live stroke previews so they look identical.
Implementation
double pdfInkStrokeWidth(double strokeWidth, double pressure) =>
strokeWidth * (0.4 + 1.2 * pressure.clamp(0.0, 1.0));