I’ve been wanting to do this for a while, but never got around to figuring out how. Until now.
With the help of this post I created a simple but very effective random lightning generator in ActionScript 3.
I was surprised at the simplicity of it, and the clear explanation on drilian.com helped a lot.
So here it is: the lightning generator.
EDIT: per request I’ve put the source files online. Download here.
A long while ago I wrote a small Flex application to draw L-systems (post).
With this app I noticed how cool it is to play around with drawing angles by moving the slider (post #2).
But somehow, I never thought of adding a play button to the slider so it plays it as an animation.
So now I did. Well, no play button, but just an animation. Here it is. Please enjoy.
lsystem animator
Note: after clicking once, you can use the + and – keys to speed it up or slow it down