Archive

Archive for July, 2009

Lightning in AS3

July 30th, 2009 admin 4 comments

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.

Categories: programming Tags:

L-system animation

July 30th, 2009 admin No comments

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

Categories: generative art, l-systems, programming Tags: