I’ve been trying to get back into programmatic doodling (it’s how I learned to code in the first place). These are just fun little visual programs, just to learn.
Black & White Cellular Automata
Based on Cliff Biffle’s tremendously cool rust+webassembly series. This just flips through the various “1D” cellular automata you can make with two states and self+neighbor patterns, choosing from a few possible starting states. Most of ’em end up not that interesting, but it was fun to practice my rust.
more...RGB Cellular Automata
Based on Cliff Biffle’s tremendously cool rust+webassembly series, and continuing to riff on cellular automata, this uses three states instead of two. The extra state takes us from 23 = 8 “parent rules” and 28 = 256 rulesets, up to 33 = 27 “parent rules” with 327 = 7,625,597,484,987 rulesets!
I found that things got, visually, a little muddled with three colors, so I have it start out zoomed in on each one, so you can see the detail and patterns better, and then zoom out as it finishes calculating the image.
more...