When we think about cellular automata, we often imagine black-and-white grids ticking forward in time, like digital snowstorms marching across the screen. But once we add color — palettes, gradients, and seasonal hues — these same simple rules start to resemble mountain ranges, woven textiles, or abstract paintings.
In this article, I explore how color transforms elementary cellular automata, starting from my earlier experiments with gradients and then moving into interactive, browser-based explorations.
From Two Tones to Color Gradients
In my previous piece, “Chromatic Evolution: Expanding the Color Palette of Cellular Automata,” I began with classic black‑and‑white rules and asked a simple question: what if each new row could have its own color gradient. By mapping cell states to smooth transitions between colors, the familiar triangular structures of rules like 50 or 30 suddenly looked like stylized mountain peaks and layered landscapes.
Even a fixed rule, when combined with evolving gradients, generates sequences of “paintings” rather than mere binary patterns.
Seasonal Palettes and Emergent Landscapes
Instead of sticking to arbitrary RGB picks, I started choosing palettes inspired by nature — for example, spring shades with distinct background and foreground colors. With five carefully separated colors, simple one‑dimensional rules produced scenes that evoke snow‑capped peaks, multi‑layered hills, or bands of vegetation.
Rule 57
Rule 150
Rule 225
Small tweaks to palette design — such as excluding the background from the foreground list — can make the main structures stand out more clearly while still preserving the underlying rule.
Exploring Colorful Automata in the Browser
To make these experiments accessible and reproducible, I built CellCosmos, a WebAssembly‑based explorer for elementary cellular automata. The core logic is written in a multilingual programming language and compiled to WASM, so it runs interactively in the browser while exposing parameters like rule, palette, and initial conditions.
Live tool: https://multilingualprogramming.github.io/cellcosmos/
With CellCosmos, you can:
- Select any of the 256 elementary rules and instantly see how it behaves with different color schemes.
- Experiment with multi‑stop gradients mapped to discrete states, turning a one‑dimensional rule into a rich chromatic texture.
- Share configurations via encoded URLs, making it easy to revisit or remix particularly striking patterns.
Why Simple Rules Make Such Rich Colors
What makes all of this so fascinating is that none of the underlying rules change: the automata remain local, deterministic update systems on a line of cells. All the perceived complexity comes from how we choose to encode states as colors, how we separate background and foreground, and how gradients evolve across rows.
In other words, color acts as an interpretable lens on dynamics we already have, revealing mountains, waves, and tapestries that were always latent in the bit patterns.





Top comments (0)