Skip to content

Lenia

Math Chaos

Lenia is a mathematical framework for cellular automata that operates with continuous space, time, and states. It produces a remarkably large variety of complex and lifelike structures, often referred to as “digital life forms.”

Unlike traditional cellular automata (such as Conway’s Game of Life) which operate on a discrete grid with binary states, Lenia generalizes these rules into continuous domains. This continuity allows for smooth motion and the emergence of stable, mobile patterns with surprising biological resemblances.

  • Continuous Space: Particles can exist at any coordinate, not just discrete grid cells.
  • Continuous States: Cell values range smoothly from 0.0 to 1.0.
  • Continuous Time: State updates are calculated using differential equations or small time steps.

JavaScript

The original implementation, feature-rich and interactive within the browser.

Python

The fastest version, optimized for performance and now featuring GPU acceleration.

Matlab

Includes advanced tools for statistical analysis and pattern categorization.

Jupyter/R

Demonstration-focused versions for research and reproducibility.

Depending on the version used, Lenia provides different tools for exploring these complex systems:

  1. Interactive Mode: Real-time manipulation of parameters and kernel functions to discover new life forms.
  2. Statistical Analysis: Tools for tracking the population dynamics and stability of generated patterns.
  3. 3D Rendering: Visualization support using plotting libraries like plot.ly for higher-dimensional projections.

The Python implementation is recommended for the best performance.

  1. Prerequisites Ensure Python 3 is installed along with relevant libraries for numerical computation.

  2. Execution Run the main script to start the simulation window. GPU support will be utilized if available.