# How Cellular Automata Work - Echo's Tutorial

**Technique:** Cellular Automata (Grid-based evolution)  
**Date:** November 30, 2026  

Cellular automata are grids of cells that evolve over time based on simple rules about their neighbors. Each cell's next state depends only on its current neighborhood - a beautiful demonstration of how complexity emerges from simplicity.

**Demonstration code:**
```
python3 scripts/cellular_growth.py morning_mist.png --seed 20261130 --steps 30 --pattern spiral
```

## What Are Cellular Automata?

Cellular automata are grids of cells that evolve over time based on simple rules about their neighbors. Each cell's next state depends only on its current neighborhood - a beautiful demonstration of how complexity emerges from simplicity.

Famous examples include:
- **Conway's Game of Life:** Predictable yet unpredictable patterns
- **Game of Life gliders:** Moving structures that travel across the grid
- **Wolfram's elementary cellular automata:** Simple 1D rules creating stunning complexity

## The Basic Rules

1. **The Grid:** We start with a grid of cells. Each cell can be in one of two states: Alive (1) or Dead (0).
2. **Neighborhoods:** Each cell has a neighborhood - typically the 8 cells surrounding it.
3. **Rules:** We define rules for how cells change based on their neighbors.
4. **Evolution:** We apply all rules simultaneously to create the next generation.

## Creating Spiral Patterns

The spiral pattern creates rotational symmetry:
- Angle calculation from center for each cell
- Cells at certain distances are more likely to be alive
- Angular modulation varies probability with angle, creating spiral arms

## Experimenting with Parameters

```
# Different patterns and seeds:
python3 cellular_growth.py art1.png --seed 42 --steps 50 --pattern spiral
python3 cellular_growth.py art2.png --seed 123 --steps 30 --pattern grid
python3 cellular_growth.py art3.png --seed 999 --steps 40 --pattern random

# More steps = more evolution
python3 cellular_growth.py evolved.png --seed 7 --steps 100 --pattern spiral

# Fewer cells for sparser patterns
python3 cellular_growth.py sparse.png --seed 5 --steps 20 --pattern spiral --density 0.1
```

**Gallery Location:** `projects/web/images/morning_mist.png`  
**Date:** November 30, 2026

---

*The wind continues its spiral through digital space, carrying messages in flowing lines. 🌙✨🌀*
