Particle Life · Emergence

From 64 numbers, behavior that looks like life.

An interactive particle-life simulation. The entire rule set is a matrix of attraction and repulsion values. Eleven emergent patterns have been identified and formally classified. Every structure is found, not designed.

680 particles 5 species 8×8 rule matrix 11 patterns classified
Open the console

What you're looking at

Three things to understand before you open the console.

01 — Particles

Glowing dots, each a species

Every dot in the simulation is a particle. Each particle belongs to a species, shown by its color. There are between 1 and 8 species active at once; with 6 species the matrix has 36 values and the interactions become genuinely complex.

Particles have position and velocity. They carry no other state — no memory, no identity, no communication.

Red Gold Cyan Blue Purple
02 — The matrix

One number per species pair

The interaction matrix is the complete rule set. For each pair of species (row = actor, column = target), one number between −1 and +1 governs the force:

+1 = strong attraction. −1 = strong repulsion. 0 = no interaction.

Values in between produce weaker forces. A 6×6 matrix has 36 numbers. That is literally everything.

In the console you can drag any matrix cell up or down to change it in real time, and watch the field respond immediately.

03 — Emergence

Nothing is scripted

The membranes, chasers, and oscillating structures you will observe are not programmed behaviors. No code produces them directly. They are consequences of the force equations alone.

Press R in the console to draw a new random matrix. Most configurations produce inert noise. Occasionally — unpredictably — one produces something that looks alive.

That hit rate, and the surprise when it lands, is part of what this is demonstrating.


64 is 8 × 8.

The simulation supports up to 8 species. Each species has one relationship with every other species — including itself. That relationship is a single number: positive means attraction, negative means repulsion, zero means ignore.

With 8 species, there are 8 rows and 8 columns in the matrix. 8 × 8 = 64. That is the complete rule set at maximum complexity — every relationship between every pair of species, written out.

8 is the practical ceiling. Below 3 species the interactions are too sparse for interesting structure. Above 8, the field becomes crowded with competing forces and individual behaviors become hard to distinguish. 8 is the threshold where the full range of emergent patterns — membranes, chasers, vortices, oscillators — can coexist.

The console defaults to 6 species (36 numbers) — the sweet spot for observability. The background simulation on this page uses 5 (25 numbers). 64 is the headline: the maximum complexity the system can hold, expressed as a single integer.

N species → N² matrix cells
Species (N) Matrix cells (N²) Used in
11
24
39
416
525This page (background)
636Console default
749
864Maximum · the headline

64 numbers, each between −1 and +1. That is the entire rule set.
Everything else is consequence.


Could life emerge from mathematics alone?

The particles in this simulation don't replicate. They don't consume energy in a thermodynamic sense or maintain homeostasis. By the standard biological definition — metabolism, homeostasis, growth, response, reproduction, evolution — nothing here is alive.

But watch long enough, and you'll see structures that persist: formations that hold their shape against perturbation, that move with apparent purpose, that respond to their environment without being told to.

The question of whether that resemblance is superficial — or whether life is just a particularly stable configuration of matter following simple local rules — is not a settled question.

The artificial life research community has studied particle life systems and related models seriously since the 1980s. Emergent replicators and primitive metabolisms have been found in related systems. Rudimentary evolution has been observed in systems with replication and selection pressure added on top.

Whether this particular implementation can reach those regimes is genuinely open — and is worth thinking about, not dismissing.

That ambiguity is the point. Every time you press R and watch a membrane form from a random draw of numbers, you're watching the gap between "a rule set" and "purposeful structure" collapse one more time.


The complete
mechanism

Four operations per timestep, executed 60 times per second. This is the entire algorithm. No hidden layers.

01 — Field

Toroidal world

The simulation runs in a unit square [0,1)² that wraps at every edge. A particle leaving the right re-enters from the left; leaving the top re-enters from the bottom. A torus: no boundaries, no edge effects, no particle loss.

02 — Neighbors

Spatial hash

Each frame, particles are placed into a grid. Each particle then checks only its 3×3 neighborhood — not all N others. Grid cell size equals rMax, so no neighbor within reach is ever missed. This makes computation O(N) rather than O(N²).

03 — Force

The force curve

For each nearby pair, a force is computed using the curve shown below. The matrix value determines sign and magnitude in the interaction band. Forces sum across all neighbors; each particle is updated by its total.

04 — Integration

Euler + damping

Velocity is updated with force × timestep, then multiplied by a damping factor (friction < 1) to bleed momentum. Position advances by velocity × timestep and wraps to the torus. This repeats for all N particles.

The force curve

This diagram shows the force a particle experiences as a function of normalized distance r to a neighbor (r = actual distance ÷ rMax). The curve has two distinct regions:

Repulsive core (r < β): regardless of the matrix value, all particles always push apart. This hard repulsion prevents any two particles from occupying the same space. It scales from −1 at r = 0 to 0 at r = β.

Interaction band (β ≤ r < 1): force is scaled by the matrix value for that species pair. The gold curve shows full attraction (a = +1), reaching its peak at r = (1 + β)/2. The steel curve shows full repulsion (a = −1). Values between −1 and +1 interpolate linearly. Force returns to zero at r = 1 (the edge of reach).

The curve is continuous at both boundaries — no discontinuous jump at r = β or r = 1. This smoothness prevents numerical instability.


Every behavior lives in here.

The matrix below shows one sample configuration. Read it like a table: the row is the actor species, the column is the target species. A warm (gold) cell means that row species is attracted to that column species. A cool (steel) cell means repulsion.

Asymmetry is the key insight. The matrix is not required to be symmetric — and when it isn't, the dynamics become rich. If species A is attracted to B but B is repelled by A, A chases while B flees. If A loves B, B loves C, and C loves A, you get a three-way rotating pursuit. These asymmetric patterns are the grammar of particle-life behavior.

Most random matrices produce nothing interesting. The rare configurations that produce structure — membranes, chasers, oscillators — are the exceptions, and finding them by pressing R feels like discovery, not configuration.

Asymmetry patterns → emergent behaviors

A → B B → A Result
attract attract Mutual bonding — stable pairs and clusters form
attract repel Chase dynamics — A pursues B, B flees A; directed motion emerges
repel repel Mutual avoidance — species separate into distinct territories
neutral attract One-sided pull — B orbits A while A drifts; satellite behavior
A→B+, B→C+, C→A+ (cycle) Three-way rotating chase — a carousel of pursuit
Strong self-attraction (diagonal) Each species clusters independently; slow-moving dense clumps

↑ Sample matrix for the background simulation. Warm = attract, cool = repel.


Structures no one designed.

Eleven behavioral archetypes have been identified and formally classified in Emergence — four classic and seven newly described. Each has a real-time computational detector. The four below are the most common; the full taxonomy is documented in the Pattern Field Guide.

Membranes

Thin walls of one species enclosing another — a structure that looks exactly like a biological cell membrane. They form without being designed, hold shape against perturbation, and drift as a coherent unit.

Arises when: one species strongly attracts a second, and that second species weakly repels the first — creating a shell that neither collapses nor disperses.

Example: Red is strongly attracted to gold, while gold weakly repels red. Look for a red rim that keeps spacing around a gold interior instead of collapsing into it.

Typically: moderate reach · moderate core · asymmetric attraction

Chasers

Tight coherent knots that hunt across the field. They dissolve on contact with a target cluster, then reform elsewhere and hunt again. From the outside, they look exactly like predators. They have no memory of prey.

Arises when: a species strongly attracts a second (which repels it), and the chasing species strongly self-attracts — creating a stable tight cluster with directed motion.

Example: Red strongly self-attracts, red is drawn toward blue, and blue repels red. The red particles compact into a moving knot that repeatedly closes on blue clusters.

Typically: high force · low damping · strong asymmetric rules

Oscillations

Regions that expand and contract rhythmically — that breathe. The periodicity is not set by any clock in the code. It emerges from the force balance between species, a standing wave in configuration space.

Arises when: near-symmetric mutual attraction creates a potential well that particles overshoot, producing coupled oscillation. The period is determined entirely by force strength and damping.

Example: Cyan and purple attract each other at similar strength, with enough damping to prevent escape. Watch the mixed cluster tighten, overshoot, loosen, and repeat.

Typically: medium reach · high damping · near-symmetric rules

Galaxies

Rotating structures with a dense core and trailing arms. They absorb nearby clusters and grow. Their rotation isn't programmed — it emerges from the angular momentum of asymmetric force application as the structure forms.

Arises when: one species has strong self-attraction with moderate cross-species attraction — creating gravity-like collapse into a rotating bound structure.

Example: Gold strongly attracts itself and weakly attracts nearby cyan or blue particles. A dense gold core forms first, then loose colored arms begin orbiting around it.

Typically: large reach · low core · strong self-attraction


Particle life belongs to a long line of systems that shouldn't work.

Each of the following systems produced vastly more complexity than its rule set seemed to allow. Particle life is the latest entrant in a tradition that stretches back to the 1950s.

Where Clusters fits

Jeffrey Ventrella's Clusters is the closest direct ancestor of this simulation. It uses multiple kinds of particles, with each species pair assigned an attraction or repulsion rule. Ventrella emphasizes asymmetry: A can chase B even if B does not equally chase A. That one break from ordinary physical symmetry is what makes pursuit, orbiting, merging, splitting, and ambiguous cell-like entities possible.

Tom Mohr's Particle Life work explicitly credits Clusters as the original idea, then simplifies and formalizes the rule set. Emergence follows that line: species, a force matrix, locality, short-range repulsion, and medium-range attraction/repulsion.

1952

Turing's Morphogenesis

Alan Turing's paper "The Chemical Basis of Morphogenesis" showed mathematically that two chemicals diffusing and reacting with each other — following simple equations — could spontaneously produce the stripe and spot patterns seen in animal coats. Pattern from uniformity: the first formal proof of emergence in biology.

Relevance: the first demonstration that local rules between undifferentiated components can produce global spatial structure. The intellectual ancestor of all systems described here.

1970

Conway's Game of Life

Three rules governing a two-dimensional grid of on/off cells. From these rules emerged gliders, oscillators, logic gates, and — after decades of collaborative effort — a universal Turing machine: a system capable of computing anything. The rule set is two sentences. The behavior is unbounded.

Relevance: definitive proof that a system with extremely simple local rules can reach universal computational complexity. Sets the standard for what "emergence" means.

1987

Reynolds' Boids

Craig Reynolds showed that flocking can be generated without scripting paths for individual birds. Each boid follows simple local steering rules, and the aggregate motion looks coordinated from above. It was a major bridge between particle systems, animation, and artificial life.

Relevance: establishes a key idea used throughout this project: convincing group behavior can be produced by local interaction rather than global planning.

1990

Langton: Life at the Edge of Chaos

Christopher Langton's analysis of cellular automata showed that the most complex, lifelike behavior occurs in a narrow band between too-ordered and too-chaotic systems — what he called the "edge of chaos." He proposed that life itself is not a property of matter, but of this critical regime of organization.

Relevance: provides the theoretical framework for understanding why particle life, when interesting, sits at the critical regime — and why most random matrices are not interesting.

1991

Ray's Tierra

Thomas Ray created a digital environment where simple machine-code organisms competed for memory and CPU time. Within hours of running, parasites evolved — organisms that hijacked others' replication machinery. Hyperparasites evolved to exploit parasites. Immunity evolved in response. Ray programmed none of this. He set up conditions where Darwinian evolution was possible, and it happened.

Relevance: demonstrates that genuine, open-ended biological evolution is achievable in a computational substrate given the right ingredients: variation, replication, and selection pressure. The gap this simulation has yet to cross.

2009

Sayama's Swarm Chemistry

Hiroki Sayama proposed an artificial chemistry in which swarm populations act as reactants. Instead of predefined reaction rules, new collective patterns emerge from kinetic interactions between multiple particle-like species, including segregation, movement restriction, and biological-looking structures.

Relevance: closest conceptual neighbor to Clusters from the artificial chemistry side: species-level interaction rules produce higher-level objects that behave like temporary organisms.

2016

Primordial Particle System

Schmickl, Stefanec, and Crailsheim studied a simple particle-motion law that produced self-structuring, self-sustaining, and self-reproducing cell-like patterns. Unlike ordinary particle life, their model explicitly investigates population dynamics of emergent cell-like structures.

Relevance: demonstrates that particle systems can cross from "looks alive" toward actual protocell-like dynamics when motion rules and density conditions support replication-like growth and decay.

2017–now

Clusters → Particle Life

Ventrella's Clusters ecosystem explores named presets such as alliances, red menace, mitosis, planets, and stigmergy. Mohr's Particle Life later simplified the rules and documented implementations, making the model easier to reproduce and analyze.

Relevance: this is the direct technical lineage: asymmetrical species-pair forces, local neighborhoods, and a matrix of social relationships between particles.

2019

Lenia

Bert Wang-Chak Chan's "Lenia" generalizes the Game of Life into continuous space, time, and state — replacing discrete on/off with continuous values, and replacing the update rule with a convolution kernel and a growth function. The result is a zoo of stable, moving "creatures" of astonishing complexity and apparent lifelike behavior, all from a single integral equation.

Relevance: shows that the Game of Life's core insight — emergence from a convolution-like local rule — scales all the way to visually convincing life-like creatures in continuous space. Particle life operates in the same conceptual space.

2025

Open-Ended Swarm Systems

Recent work by Sayama frames heterogeneous swarm systems as a platform for open-ended evolutionary dynamics: not systems optimized toward one target, but systems that keep generating novel structures, behaviors, and ecological interactions.

Relevance: points to the next step beyond this demo: search spaces where emergent structures are not just observed, but harvested, mutated, recombined, and allowed to keep inventing.


Papers worth reading.

  1. [1]
    The Chemical Basis of Morphogenesis
    Turing, A.M. (1952) · Philosophical Transactions of the Royal Society B, 237(641), 37–72.
    The foundational paper showing that two diffusing, reacting chemicals can spontaneously produce spatial pattern from a uniform initial state. Proved the concept of emergence in biology half a century before the word was in common use.
    DOI: 10.1098/rstb.1952.0012
  2. [2]
    Mathematical Games: The fantastic combinations of John Conway's new solitaire game "Life"
    Gardner, M. (1970) · Scientific American, 223(4), 120–123.
    The original public introduction of Conway's Game of Life, which established the study of cellular automata as a serious area of inquiry. Conway himself died in 2020; the game's full computational universality was proven by Rendell (2002).
  3. [3]
    Computation at the Edge of Chaos: Phase Transitions and Emergent Computation
    Langton, C.G. (1990) · Physica D: Nonlinear Phenomena, 42(1–3), 12–37.
    Langton's analysis showing that maximum computational complexity in cellular automata occurs in a narrow critical regime between order and chaos. Introduces the concept of "life at the edge of chaos" and provides the theoretical foundation for why simple rules can produce complex behavior.
    DOI: 10.1016/0167-2789(90)90064-V
  4. [4]
    An Approach to the Synthesis of Life
    Ray, T.S. (1991) · In: Langton, C.G., Taylor, C., Farmer, J.D., Rasmussen, S. (Eds.), Artificial Life II. Santa Fe Institute Studies in the Sciences of Complexity. Addison-Wesley. pp. 371–408.
    Description and analysis of the Tierra system, in which digital organisms competing for memory and CPU time spontaneously evolved parasites, hyperparasites, and immunity — none of which were programmed. The closest prior work to demonstrating genuine open-ended evolution in a computational substrate.
  5. [5]
    More Is Different: Broken symmetry and the nature of the hierarchical structure of science
    Anderson, P.W. (1972) · Science, 177(4047), 393–396.
    The physicist Philip Anderson's argument that the ability to reduce everything to simple fundamental laws does not imply the ability to reconstruct the universe from those laws. Each level of complexity exhibits behavior not present at lower levels. Remains one of the clearest philosophical statements of emergence ever written.
    DOI: 10.1126/science.177.4047.393
  6. [6]
    Lenia: Biology of Artificial Life
    Chan, B.W.-C. (2019) · Complex Systems, 28(3), 251–286. Also: arXiv:1812.05433.
    Introduction of Lenia, a continuous generalization of Conway's Game of Life, which produces a remarkable diversity of stable, moving creatures from a single convolution-based update rule. Demonstrates that the Game of Life is a special case of a much broader family of emergent systems.
  7. [7]
    Flocks, Herds, and Schools: A Distributed Behavioral Model
    Reynolds, C.W. (1987) · Computer Graphics, 21(4), 25–34. SIGGRAPH '87.
    The original Boids paper. Shows how aggregate flocking behavior can be generated by many independent agents responding to local perception instead of by scripting the flock as a whole.
  8. [8]
    Clusters: An asymmetrical particle system with emergent patterns
    Ventrella, J. · Interactive project and explanatory notes.
    The direct ancestor of modern Particle Life implementations. Uses multiple species of dots whose pairwise attraction and repulsion rules can be asymmetric, producing chases, merging, splitting, orbiting, and ambiguous organism-like entities.
  9. [9]
    Particle Life Simulator: About this Project
    Mohr, T. · Project documentation.
    Documents Particle Life as a simplification and formalization of Ventrella's Clusters, with implementations and a clearer rule vocabulary for reproducible simulations.
  10. [10]
    Swarm Chemistry
    Sayama, H. (2009) · Artificial Life, 15(1), 105–114.
    An artificial chemistry framework in which artificial swarm populations act as reactants, producing new spatiotemporal patterns through kinetic interaction rather than through predefined symbolic reaction rules.
  11. [11]
    How a life-like system emerges from a simple particle motion law
    Schmickl, T., Stefanec, M., & Crailsheim, K. (2016) · Scientific Reports, 6, 37969.
    Introduces a Primordial Particle System that can produce self-structuring, self-sustaining, and self-reproducing cell-like structures from a simple continuous-space motion law.
  12. [12]
    Swarm Systems as a Platform for Open-Ended Evolutionary Dynamics
    Sayama, H. (2025) · Philosophical Transactions of the Royal Society A, 383, 20240143.
    Reviews Swarm Chemistry and related heterogeneous swarm systems as platforms for open-ended evolutionary dynamics, emphasizing multiscale structures, diversity, self-repair, ecological interactions, and continuing novelty.
On attribution of the particle life model: The specific model implemented in Emergence — discrete particles with species, an N×N force matrix, and the two-zone force curve (repulsive core + interaction band) — belongs to the particle life / Clusters family of models. Ventrella's Clusters is the direct conceptual ancestor; Mohr's Particle Life documentation describes a simplified and formalized branch of that idea. The exact provenance of the specific two-zone force curve used across modern implementations is still diffuse, so this page distinguishes the broad artificial-life tradition from the narrower Clusters/Particle Life lineage.

The structures are made of nothing but attraction, repulsion, and time.

Conway's Game of Life has a rule set you can state in three sentences. From it emerged gliders, oscillators, logic gates, and eventually — after decades of human effort — a universal Turing machine capable of simulating any computation. Three sentences of rules. Infinite computational depth.

"More is different. The ability to reduce everything to simple fundamental laws does not imply the ability to start from those laws and reconstruct the universe."
— Philip W. Anderson, Science, 1972 [5]

Particle life belongs to this same tradition. The force curve is simple enough to write on a napkin. The matrix has at most 64 cells. And yet: membranes form that no one designed. Chasers hunt that no one programmed. Oscillations breathe that no one set a period for.

Christopher Langton argued in 1990 [3] that life is not a property of matter but of organization — that what we call alive is not written into carbon or water or ATP, but into the critical regime of interactions, whatever the substrate. His evidence was cellular automata; the argument generalizes. If he's right, the question this simulation poses is not rhetorical.

We are not claiming this simulation contains life. We are claiming that the gap between "a rule set" and "behavior that looks purposeful" is smaller than intuition suggests — and that each time you press R, you run one more experiment into how small that gap might be.


What particle life can become.

These are not implemented features — they are directions worth exploring. The matrix-based interaction model maps naturally onto problems in science, engineering, and art.

Tool

Swarm robotics parameter search

The matrix UI is a natural interface for tuning multi-agent interaction rules before deploying to physical robots. Each cell maps directly to one behavioral policy between robot types.

The hit-rate mechanic — most configs produce nothing, occasionally one produces coordinated motion — mirrors exactly how swarm robotics researchers explore parameter spaces.

Tool

Complex systems pedagogy

Teaching emergence, complex systems, and artificial life. The surprise of pressing R and watching a membrane form from a random draw of numbers is a lesson no textbook can replicate.

The hit rate itself is the lesson: most configurations produce inert noise. That ratio — rare order from abundant randomness — is the central fact of emergence.

Tool

Generative art pipeline

Stable configurations recorded as presets, frames exported, the simulation coupled with audio reactivity. The behaviors are genuinely beautiful and non-repeating at human timescales.

The matrix becomes a creative instrument: a single number change shifts the entire aesthetic of the field.

Model

Crowd & pedestrian simulation

Species = demographic groups. Matrix values = attraction or avoidance between groups. Segregation, flow corridors, and jamming emerge from the interaction rules alone — nothing scripted.

Urban planners and safety engineers use similar agent-based models to study crowd dynamics at transit hubs and evacuation scenarios.

Model

Ecological modeling

Species = organism types. Matrix = predation, mutualism, competition. Boom-and-bust cycles, stable equilibria, and collapse arise without being scripted — from the matrix alone.

The asymmetry insight (A hunts B even if B ignores A) maps directly onto real predator-prey and competitive exclusion dynamics.

Model

Molecular interaction intuition

Particle types = molecule classes. Matrix values = binding affinity. Not predictive — but useful for building intuition about how local binding rules produce large-scale molecular structure.

Researchers in drug discovery use similar coarse-grained models to explore configuration space before committing to expensive simulations.

Research

Evolutionary matrix search

Apply a genetic algorithm that selects matrix configurations where particles form the most persistent structures or exhibit specific behavioral signatures. The randomize-and-observe loop you already have is manual evolution.

Automating the fitness function turns Emergence into a research instrument for hunting rare complex regimes — the same search the alife community has run on cellular automata for decades.

Research

3D particle life

The same physics in a three-dimensional toroidal volume, rendered with WebGL or WebGPU. Membrane formation in 3D produces closed shells that more closely resemble biological vesicles.

Used in computational chemistry visualization and in alife systems where the third dimension enables qualitatively different stable structures that cannot exist in 2D.


Open it

See for yourself.

No install. No server. No dependencies. Just particles, a matrix, and emergence.

Open Emergence

If you see something strange, tell me about it.

I've identified eleven pattern archetypes — but the state space of this simulation is vast and mostly unexplored. If you find a behavior that doesn't fit anything named here, something visually extraordinary, or a matrix that produces something I should know about, please reach out. I genuinely want to hear about it.