A freeform path is made up of line segments so small they don't appear to be lines, but instead make up a jagged curve. We plug this into our smoothing function, which returns points for cubic bezier curves. We can adjust the tolerance, which will influence the amount of smoothing that takes place and, therefore, the amount of path segments left over. In the demo, this value is hardcoded but can be changed easily by editing the source code.

Demo Source code
links are dead
ReplyDelete