Description
perfect-freehand is a library and demo for drawing smooth, pressure-sensitive freehand lines. The site shows an interactive page where you draw and watch the stroke update as you change its options. The options include size, thinning, streamline and smoothing, a choice of easing curves from linear to the quint, expo and sine families, and taper and cap settings at the start and end of each stroke. You can choose whether the shape is filled or drawn as a stroke, reset the options, copy them, or copy the drawing as SVG. The project is a small utility for building drawing, sketching and annotation features in a web app, where a raw series of pointer points would look jagged. It is open source and public on GitHub, under the author's repository. It suits developers who want a natural-looking ink stroke in their own interface without writing the smoothing math themselves.…
Highlights
- Smooth pressure-sensitive freehand strokes
- Size, thinning, streamline and smoothing controls
- Taper and cap options at each end
- Copy options or the drawing as SVG
Ratings & Reviews
No ratings yet
Be the first to rate Perfect Freehand.
People also visit

react-sketch-canvas
Freehand vector drawing component for React using SVG as canvas
Perfect Freehand FAQ
What is perfect-freehand?
A library for drawing smooth, pressure-sensitive freehand lines, with an interactive demo on its site.
Is it free?
The project is open source and its repository is public on GitHub.
What can I change about a stroke?
Size, thinning, streamline, smoothing, easing, taper and caps at each end, and whether it is filled or stroked.
Can I export a drawing?
Yes. The demo can copy the drawing to SVG, and it can copy the options.
What is it useful for?
Drawing, sketching and annotation features in a web app, where the stroke should look natural.
What are the best Perfect Freehand alternatives?
Popular alternatives to Perfect Freehand include Svg2roughjs, SVG Drawing and DGM.js. See all Perfect Freehand alternatives





