Closed steveruizok closed 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
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.