steveruizok / perfect-freehand

Draw perfect pressure-sensitive freehand lines.
https://perfectfreehand.com
MIT License
4.48k stars 156 forks source link

Improvement thinning #33

Closed steveruizok closed 3 years ago

steveruizok commented 3 years ago

This PR reworks the algorithm for finding the stroke's radius based on its thinning, pressure, easing, and size. It also trims down the package size (from 1.9kb to 1.7kb gzipped) and extends documentation.

The change to the radius algorithm is considered a breaking change, so we'll bump the version number.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/steveruiz/perfect-freehand-example/8JnrQ2DAVXLEXjrQYsgGYXJE7s1Y
✅ Preview: https://perfect-freehand-example-git-improvement-thinning-steveruiz.vercel.app