I was skimming through Keith Peters “Making Things Move” for AS2, and i stumbled upon a section about how to draw multiple smooth curves to form one smooth line. This has always puzzled me, so I decided to try it out, and i found that it’s a lot easier than I thought.
The idea is to pick some random points, at least 3, if you want to form a contiguous shape, and find their midpoints. Then use the midpoints as anchor points for the curveTo method and the randomized points as controlpoints.
Above image is an illustration of the concept. Blue dots are the randomized points. Black dots are the midpoints. Black line are the curves drawn with black dots as anchor points and blue dots as control points.
And thats it! Very simple indeed. I’ve made a little app that demonstrates the concept. Check it out here. Drag the blues markers to change shape. Figure out what the buttons do yourself!





