Actionscript 3.0 Splines with Variable Thickness
A demo of the variable-thickness spline drawing script in action. Click for a redraw with different points.
I'm working on a side-project where I'll need to plot a path on a map. Ideally, I'd like to do it with style. I remembered an old blog post I'd read and after some digging I found Michal Migurski's post about splines. Nearly three years ago Michal wrote a script which connects any number of points with a spline. The thickness of the spline is also controllable. This could make for some really great visualizations (I'm thinking the thickness depends on speed: walking leaves fat lines and driving quick, thin ones) but also let's you draw stylized strokes like above.
The source code in ActionScript 2.0 is posted on Michal's site, Tecznotes. (Thanks, Michal!)
Now that I've ported the script to an ActionScript 3.0 class I can't wait to play with it. There's also some possibility for generative artwork.
I've got to tweak the source a bit but I'll post it here once it's been fixed up and I've tested it out some more. In the meanwhile you can pull the ActionScript 2.0 version off Migurski's site.
Update: Just posted the fat spline source code.


