Posted by: pixelero | July 2, 2009

Belousov-Zhabotinsky -cellular automata

This Demo also allows you to save the animation as a seamless gif-image. For the best results, please wait for some time for the automaton to fully develop and don’t worry if preparing data for saving might take some time. Lots of values don’t give the beautiful spirals at all, so it might take a couple of tryes before getting somewhere. I noticed the values k1=2, k2=3…8, g~250/k2, develop for the best results. To start over again just press the button to regenerate if you end up having an empty canvas.
Anyway in my personal opinion I find BZ one of the most artistic of all cellular automata – and I wanted to check it out with actionscript, the code uses fp10 Vectors and bitmapdata.setVector, with which I’ve had already earlier some nice results when it comes to performance speed.

Main_fla.zip

BelousovZhabotinskyCA.as

BelousovZhabotinskyDemo.as

For saving the gif, I used FileReference.save() of FlashPlayer 10 with very useful as3gif by Thibault Imbert

You’ll find some more info on the BZ-automaton like for instance here or here

Advertisements

Responses

  1. Pretty nifty, I’ve always been fascinated by simple rules that generate complex systems, such as in CA, and somewhat related, fractal images.

  2. […] Flash animation and ActionScript 2.0/3.0. Knowledge of HTML, CSS and JavaScript. Fresh Graduate Belousov-Zhabotinsky -cellular automata – pixelero.wordpress.com 07/02/2009 Demo also allows you to save the animation as a seamless […]

  3. […] Demo also allows you to save the animation as a seamless gif-image. For the best results, please wait for some time for the automaton to fully develop and don’t worry if preparing data for saving might take some time. Lots of values don’t give the beautiful spirals at all, so it might take a couple of tryes before getting somewhere. See original here: Belousov-Zhabotinsky -cellular automata […]

  4. kinda hypnotic =)

    and if mario ports it to peacock it has it´s practical application as well. congrats.

  5. […] I just couldn’t resist the temptation of checking the BZ-cellular automaton of my previous post with some […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: