- Download the file to your desktop.
- Open up Terminal (ahh scary!). It should be in Applications/Utilities.
- Type cd Desktopand press enter.
- Type gcc BMPautomata.c -o BMPautomataand press enter. You should not get any warnings or errors.
- You're ready to run it. Type ./BMPautomataand press enter. You should see the usage line.
- Now let's run it for real. Type ./BMPautomata 90 800 400 > test.bmpand press enter. This says to run rule 90 and output a 800x400 image.
- Take a peek on your desktop. There should be a shiny new file named test.bmp. Go on, open it. As you can see, the default colors are black/white.
April 11, 2009
by Marco Vitanza
Yet another cellular automata utility -- this time it's a cross-platform C file: BMPautomata.c.
Here's how to run it in OS X and get a nifty image like the background here: http://twitter.com/vitanza.