All paths

Generative art and cellular automata

Turn a 16x16 LED panel into a night sea in C++ on an ESP32-C3: the Game of Life, random walks, L-systems, noise, flocking fish and a living light wall.

ESP32-C3-DevKitM-1Free7 lessons5 h4 chapters1,932 XPCoding · Intermediate+150 XP

0 of 7 done

What you will build

3 projects, built step by step

7 lessons in 4 chapters, about 5 hours on a simulated ESP32-C3-DevKitM-1. Free, in your browser, every step checked by the simulator.

Chapter 1 project

Random walks

Plankton that drift by coin flips, a random number generator in three shifts, fading trails, and 64 invisible walkers that check the square root law of diffusion.

Open it in the simulator
Chapter 2 project

Noise fields

Value noise in integer math: a hashed lattice, smoothstep blending and octaves make a drifting bioluminescent tide, measured against plain random static.

Open it in the simulator
Chapter 3 project

Mapping a matrix

From x and y to a place on one long wire: serpentine rows, the function every lesson has leaned on, and rotation for free.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

Rules and chance

Cellular automata and random walks: simple rules, rich results.

  1. Open187 XP

    Game of Life

    Conway's two rules on a 16x16 torus of LEDs: a plankton bloom from five cells, rules as bitmasks, and a fingerprint that notices when the colony settles.

    0 of 5 steps

  2. ProjectLocked436 XP

    Random walks

    Plankton that drift by coin flips, a random number generator in three shifts, fading trails, and 64 invisible walkers that check the square root law of diffusion.

    0 of 6 steps

5 questions, graded as you go.
Chapter 2

Growth and texture

Plants from rewriting rules and a tide from noise.

  1. Locked187 XP

    L-systems

    Kelp from a rewriting rule: a string that grows every generation, and a turtle with a stack that turns its symbols into branches.

    0 of 5 steps

  2. ProjectLocked374 XP

    Noise fields

    Value noise in integer math: a hashed lattice, smoothstep blending and octaves make a drifting bioluminescent tide, measured against plain random static.

    0 of 5 steps

4 questions, graded as you go.
Chapter 3

Swarms and space

A school of fish from three rules, and the grid under it all.

  1. Locked156 XP

    Flocking

    Twelve fish, three local rules and no leader: separation, alignment and cohesion, and an order number that shows a school appear out of a swarm.

    0 of 4 steps

  2. ProjectLocked374 XP

    Mapping a matrix

    From x and y to a place on one long wire: serpentine rows, the function every lesson has leaned on, and rotation for free.

    0 of 5 steps

4 questions, graded as you go.
Chapter 4

Project

Everything on one living light wall.

  1. Locked218 XP

    Project: a living light wall

    Four scenes from the course on one panel, a plankton bloom, drift, a noise tide and a fish school, played from a playlist you can rearrange and extend.

    0 of 6 steps

3 questions, graded as you go.
Syllabus

Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

Rules and chance

  1. Game of LifeConway's two rules on a 16x16 torus of LEDs: a plankton bloom from five cells, rules as bitmasks, and a fingerprint that notices when the colony settles.
  2. Random walksPlankton that drift by coin flips, a random number generator in three shifts, fading trails, and 64 invisible walkers that check the square root law of diffusion.
Chapter 2

Growth and texture

  1. L-systemsKelp from a rewriting rule: a string that grows every generation, and a turtle with a stack that turns its symbols into branches.
  2. Noise fieldsValue noise in integer math: a hashed lattice, smoothstep blending and octaves make a drifting bioluminescent tide, measured against plain random static.
Chapter 3

Swarms and space

  1. FlockingTwelve fish, three local rules and no leader: separation, alignment and cohesion, and an order number that shows a school appear out of a swarm.
  2. Mapping a matrixFrom x and y to a place on one long wire: serpentine rows, the function every lesson has leaned on, and rotation for free.
Chapter 4

Project

  1. Project: a living light wallFour scenes from the course on one panel, a plankton bloom, drift, a noise tide and a fish school, played from a playlist you can rearrange and extend.
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Generative art and cellular automata

Is Generative art and cellular automata free?

Yes. All 7 lessons of Generative art and cellular automata are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real ESP32-C3-DevKitM-1?

No. Every lesson runs on a simulated ESP32-C3-DevKitM-1 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Generative art and cellular automata take?

About 5 hours: 7 lessons in 4 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Random walks, Noise fields and Mapping a matrix.

Where do I start?

With "Game of Life", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.