🧬

Biology & Life

Swarm intelligence, ant optimisation and cellular automata. Simple rules give rise to complex behaviour of living systems.

12+ simulations Three.js · Canvas 2D Boids · ACO · Conway

Biology and life science cover how living systems behave — from a single firing neuron to entire ecosystems and epidemics. This category turns those processes into hands-on, interactive models you can run directly in your browser. Explore swarm intelligence with Boids and ant colonies, watch Conway's Game of Life build self-replicating structures, follow predator–prey cycles, evolve populations with genetic algorithms, and trace how reaction–diffusion chemistry paints the spots and stripes on animal coats. By dragging sliders for infection rate, reproduction, sensing radius or diffusion speed, you gain a real feel for emergence: how complex, lifelike patterns arise from a handful of simple local rules. It is a fast, visual way to build intuition for ecology, evolution, epidemiology and computational biology that static textbooks rarely deliver.

Category Simulations

Open a simulation — it runs right in your browser

🧠
★★★ Advanced
Spiking Neural Network
Leaky integrate-and-fire network firing in real time. Tune connectivity, the excitatory/inhibitory ratio, drive and coupling, and watch the spike raster shift between asynchronous and synchronous regimes.
Canvas 2D LIF Neurons Raster Plot Synchrony
🦠
★★★ Advanced
Cell Growth & Morphogenesis
Grow a cluster from a few seeds: cells enlarge, divide and pack with force-directed relaxation while a Gray–Scott morphogen field patterns their fate. Explore division rate, adhesion and reaction–diffusion.
Canvas 2D Reaction-Diffusion Cell Division Morphogenesis
🐦
Popular ★★☆ Moderate
3D Boids — Swarm Intelligence
5,000+ bird agents in 3D space: separation, alignment, cohesion. InstancedMesh for smooth 60fps. Adjust forces in real time.
Three.js InstancedMesh Reynolds
🐜
★☆☆ Easy
Ant Colony (ACO)
200 ants leave pheromone trails to food. The colony self-organises the shortest path — ant colony optimisation algorithm.
Canvas 2D ACO Stigmergy
🔬
★★☆ Moderate
Conway's Game of Life
Classic cellular automaton in a 3D Three.js view. Thousands of cells update synchronously under four rules. Draw your own patterns.
Three.js Cellular Automata Conway
🦠
New ★★☆ Moderate
SIR Epidemic Model
Particles spread infection by proximity. Tune transmission rate β, recovery γ, vaccinate live. Watch R₀ and the epidemic curve in real time.
Canvas 2D SIR Model Epidemiology Particles
🌱
New ★★☆ Moderate
L-Systems — Procedural Plants
Lindenmayer rewriting rules grow plants, fractals and space-filling curves. 10 presets — Koch, Hilbert, Dragon, Fern, Sierpinski and more.
Canvas 2D L-System Turtle Graphics Procedural
🐠
New ★★☆ Moderate
Prey–Predator (Lotka–Volterra)
Hundreds of prey and predator particles interact via spatial rules. Watch populations oscillate in classic Lotka–Volterra cycles.
Canvas 2D Lotka–Volterra Particles Ecology
🧠
New ★★★ Advanced
Neural Network — Backpropagation
A two-layer network learns XOR (or a 2D boundary) live. Weights shown as coloured edges, activations as node brightness, loss curve per epoch.
Canvas 2D Backprop XOR Deep Learning
🦊
New ★★☆ Moderate
Fox & Rabbits
A live Lotka-Volterra predator-prey simulation with animated animals. Watch population oscillations in a live chart!
Canvas 2D Kids Lotka–Volterra Ecology
🔵
★★☆ Moderate
Reaction–Diffusion
Gray–Scott reaction-diffusion system rendered with GPU shaders. Spot, stripe and maze patterns emerge from two interacting chemicals.
WebGL Gray–Scott Pattern
🦠
★★☆ Moderate
Disease Spread
Agent-based epidemic simulation with SEIR model. Adjust infection rate, recovery and immunity to see how diseases spread.
SEIR Canvas 2D Epidemiology
🧬
★★★ Advanced
Genetic Algorithm
A population evolves to solve the Travelling Salesman Problem. Selection, crossover and mutation drive convergence.
Canvas 2D TSP Evolutionary
🐦
★☆☆ Beginner
Boids Flocking
Craig Reynolds' three-rule flocking algorithm: separation, alignment and cohesion. Thousands of agents produce murmurations without any central control — emergent collective intelligence.
Agent-Based Emergence Three.js
🦅
★☆☆ Beginner
Bird Flock
3D murmuration of thousands of starlings. Neighbour-distance interactions only — no global leader. Watch the flock split, merge and swirl around virtual predators.
Boids Three.js Instancing
🦋
★☆☆ Beginner
Butterflies
Perlin-noise-driven butterfly flight paths in a meadow. Each butterfly has individual wing-beat frequency and attraction to flowers — a calm, meditative simulation.
Perlin Noise Three.js Animation
🌊
★★★ Advanced
Population Wave
Simulate spatial spread of an invasive species using Fisher-KPP on a 2D grid. Wave front at v=2√(Dr). Optional Allee effect.
Fisher-KPP Reaction-Diffusion Canvas 2D
🍄
New ★★☆ Moderate
Mycelium Network Growth
Simulate fungal mycelium growth as a branching network. Hyphal tips extend toward nutrient gradients...
Canvas 2D Mycelium Branching Fungi
🌱
New ★★☆ Moderate
Plant Phototropism & Gravitropism
Watch a plant stem bend toward light (phototropism) and roots grow downward (gravitropism). Auxin re...
Canvas 2D Tropism Auxin Botany

Learning Resources

Articles and tutorials about the algorithms in this category

Article Boids Algorithm: flocks and swarms Reynolds' three rules: separation, alignment, cohesion. FOV and spatial hashing. Article ACO: Ant Colony Optimisation Pheromone trails. Probabilistic path selection. Solving the travelling salesman problem. Article Conway's Game of Life Cellular automata. Birth and survival rules. Glider guns and oscillators.
All articles →

About Biology & Life Simulations

Flocking, evolution, epidemics, and cellular patterns — modelled as code

Biology and life simulations reveal how complex behaviours emerge from simple local rules. Reynolds's three steering rules (separation, alignment, cohesion) produce realistic bird-flocking with hundreds of agents; Turing's reaction-diffusion equations generate the spot and stripe patterns seen on animal coats; the SIR epidemic model tracks disease spread through networked populations; and Conway's Game of Life demonstrates how a two-state rule set generates gliders, oscillators, and self-replicating structures.

These agent-based and equation-driven models are used in ecology, epidemiology, evolutionary biology, and synthetic biology research. By adjusting reproduction rates, infection probability, sensing radius, or diffusion coefficients you can observe population dynamics, extinction events, pattern formation, and the edge of computational universality — all within the browser.

Life simulations occupy a unique intersection of biology, mathematics, and computer science. The same reaction-diffusion equations that produce spots on a cheetah also model tumour growth and chemical oscillators. Genetic algorithms derived from evolution power industrial optimisation, machine learning, and drug discovery pipelines. Exploring these models interactively builds a deep intuition for how biological complexity arises from molecular-scale simplicity.

Key Concepts

Topics and algorithms you'll explore in this category

Conway's Game of LifeUniversal Turing-complete cellular automaton
DNA / GeneticsBase-pair encoding and mutation simulation
Turing PatternsReaction-diffusion morphogenesis
Neural FiringHodgkin-Huxley action potential model
Evolution / Genetic AlgorithmsSelection, crossover, mutation
Cellular AutomataLocal rules generating biological patterns

Frequently Asked Questions

Common questions about this simulation category

Is Conway's Game of Life really Turing-complete?
Yes — it has been proven that Game of Life patterns can simulate any computation, including a universal Turing machine, logic gates, and even a working copy of Life itself. The simulation here runs on a Canvas 2D grid with toroidal boundary conditions.
How do Turing reaction-diffusion patterns form on animal coats?
Alan Turing's 1952 paper showed that two chemicals — an activator and an inhibitor — diffusing at different rates can spontaneously break symmetry and create stable spatial patterns. The Gray-Scott simulation produces the same spots and stripes seen on leopards, zebrafish, and mollusk shells by changing feed and kill rate parameters.
What is the Boids flocking algorithm?
Craig Reynolds' 1987 Boids model reproduces realistic bird-flocking and fish-schooling behaviour from just three local steering rules applied to each agent: separation (avoid crowding neighbours), alignment (steer toward average heading), and cohesion (steer toward average position). No central control is needed — the murmuration emerges from local interactions alone.
How does the SIR epidemic model work?
The SIR model divides a population into Susceptible, Infected, and Recovered compartments. Infected individuals spread disease to susceptibles at rate β and recover at rate γ. The basic reproduction number R₀ = β/γ determines whether an epidemic grows (R₀ > 1) or fades (R₀ < 1). You can adjust both sliders live in the simulation.

Other Categories