Particle Lenia*

Artificial life from simple particle interactions. Explore self-organizing systems that produce life-like behavior — entirely in your browser.

Based on the original paper with demo by Alexander Mordvintsev, Eyvind Niklasson, and Ettore Randazzo.
*This project extends the original with new tools and features. It is not affiliated with or endorsed by the original authors or Google Research.

Explore

Six interactive applications, all running on the GPU in your browser.

Original Demo ↗

The original interactive demo by the paper authors. Pan, zoom, herd particles, capture creatures and save them to your zoo.

WebGL2 Touch Audio

Scripting Lab

Code editor with a full Clojurescript REPL and DSL for scenario scripting with async/await, generators, and composition. Includes MIDI sonification of particle dynamics and WebGPU opt-in.

CodeMirror DSL Analysis

Interactive Story

A scroll-synced educational narrative explaining how life emerges from simple rules. 17 chapters across three parts — from single particles to multi-species ecosystems.

Narrative Scroll-sync Educational

Evolution Arena

Breed creatures with a genetic algorithm. Configurable fitness, mutation operators, Hall of Fame, creature comparison, and one-click presets.

GA Multi-species Presets

3D Lenia

Volumetric particle systems with WebGPU compute shaders, orbit camera, field-slice visualization, trails, and 15 presets.

WebGPU 3D Compute

Gallery

Fullscreen ambient display that auto-cycles through zoo creatures with smooth camera tracking. Works as a screensaver.

Ambient Auto-play

Lab Capabilities

The Scripting Lab is a full experiment workbench.

How It Works

Each particle follows two simple rules. Complex life emerges.

1

Sense Neighbors

Every particle measures the density of others around it through a ring-shaped kernel function — strongest at a preferred distance.

2

Evaluate Comfort

A growth function rates conditions: not too lonely, not too crowded. The "ideal" density is where life thrives.

3

Repel if Too Close

Short-range repulsion prevents particles from overlapping — everyone needs personal space.

4

Move Downhill

Each particle moves to reduce its energy. No coordination, no global plan — yet complex structures spontaneously emerge.

Particle Lenia — Marbles on a Landscape