After having my creative mojo refueled at Flash on the Beach, I've started playing around with some of my old experiments again. One of my favourite older experiments is my vein logic – it's just such a beautiful example of recursion, and can be applied to so many things (like veins, vines, trees, more trees, and lightning) – so I decided I would rewrite and rearchitect it for ActionScript 3.

I barely managed to lay the groundwork for the new architecture before I got sidetracked by the file I was using to test it, and wound up building what I will affectionately call the Flaming Hairball.

You can check it out below.

I'm sure there will be many more experiments where that came from. I've built the new branching classes to be easy to work with, and I have a bunch of ideas. I'll try to post the good and the bad so people can see some of the evolution.

I won't be releasing this code just yet (as I mentioned, it's nowhere near complete), but if you want to get the general idea for how it works, I did release the AS2 version of the source code here.

UPDATE: here's another variation, playing with some of the colors and values: