perfect-freehand — Draw perfect pressure-sensitive freehand lines

What a wonderful package by Steve Ruiz:

Draw perfect pressure-sensitive freehand lines

The results are stunning imo. In the recording above you can see me write hello using the trackpad on my Mac. Yep, that’s without a stylus!

Embedded below you can find a Vanilla JS demo, inspired upon the code from the React code that’s included in the project’s README.

See the Pen
Vanilla JS `perfect-freehand` Demo
by Bramus (@bramus)
on CodePen.

Seems like a perfect library to use when asking for an autograph in forms.

Installation per NPM:

npm install perfect-freehand

perfect-freehand Source (GitHub) →
perfect-freehand Demo →

Published by Bramus!

Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.