Smooth Stroke Capture and Rendering
AnyTool Signature Pad captures freehand input from Pointer Events, so a mouse, finger or stylus all work, and pulls coalesced move events for dense sampling. Each stroke is stored as an array of timed points and rendered with quadratic-curve midpoint smoothing — between consecutive samples the curve passes through their midpoint using the previous sample as the control point, turning jagged pointer data into clean ink. An optional speed→width variation derives each segment’s thickness from pointer speed, thinning fast strokes and thickening slow ones for a natural pen feel.
- Pointer Events support mouse, touch and stylus, with coalesced-event sampling
- Quadratic-curve midpoint smoothing rounds off jagged pointer samples
- Optional speed→width variation mimics a real pen; round caps and joins fuse segments
- High-DPI rendering keeps the signing surface and exports crisp
- A single tap renders as a filled dot rather than an empty stroke
