MCPcopy Index your code
hub / github.com/Chakazul/Lenia

github.com/Chakazul/Lenia @v3.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.5 ↗ · + Follow
1,008 symbols 3,486 edges 11 files 20 documented · 2% updated 1y agov3.0 · 2020-10-14★ 3,7955 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

**For full version list, see Timeline in Lenia portal

  • [2020-10-13] Update Python version with multi-kernel and multi-channel extensions (v3.4 LeniaNDK.py, v3.5 LeniaNDKC.py). To see the most advanced Lenia patterns, run "python LeniaNDKC.py -c3 -k3", and press "B"
  • [2020-07-22] Companion video "Lenia: Expanded Universe" available at https://youtu.be/HT49wpyux-k
  • [2020-07-14] Paper published in ALIFE 2020 Proceedings at https://www.mitpressjournals.org/doi/abs/10.1162/isal_a_00297
  • [2020-05-07] Preprint paper "Lenia and Expanded Universe" for ALIFE2020 available at https://arxiv.org/abs/2005.03742
  • [2020-01-13] Major update in Python version: n-Dimensional Lenia. List of changes see LeniaND changes.txt
  • [2019-12-14] Lifeforms found in 3D and 4D Lenia https://twitter.com/BertChakovsky/status/1211010576631005184 https://twitter.com/BertChakovsky/status/1209177017096163328
  • [2019-10-16] Paper published in Complex Systems journal at https://www.complex-systems.com/abstracts/v28_i03_a01/
  • [2019-05-04] Preprint paper updated on arXiv, accepted by Complex Systems journal and waiting for publication
  • [2018-12-27] Preprint paper "Lenia - Biology of Artificial Life" available at https://arxiv.org/abs/1812.05433
  • [2018-07-19] Ready to run in your browser! https://chakazul.github.io/Lenia/JavaScript/Lenia.html

Lenia

Lenia is a 2D cellular automata with continuous space, time and states. It produces a huge variety of interesting life forms.

There are various versions available. Python, Matlab and web (JavaScript) versions are real-time, interactive, and equipped with statistics tools. Jupyter and R versions are non-interactive and just for demonstration purposes.

Showcase video

screen cap Watch in YouTube Watch in Vimeo

screen cap Watch in YouTube Watch in Vimeo

Python Version

Fastest version, minimalist layout. Now with GPU support! (Needs Python3 and various libraries)

screen cap screen cap screen cap

Matlab Version

Fast version, great tools for statistical analysis. (Needs purchased copy of Matlab)

screen cap

JavaScript Version

The original program, slow but with most features.

screen cap 1 screen cap 2 screen cap 3

3D rendering using plot.ly

orbium       gyrorbium

Core symbols most depended-on inside this repo

add
called by 107
Python/LeniaND.py
clear
called by 35
Python/LeniaND.py
get_color
called by 31
Python/LeniaNDKC.py
normalize
called by 24
Python/LeniaND.py
transform_world
called by 23
Python/LeniaNDKC.py
unsigned32
called by 22
JavaScript/libs/MersenneTwister19937.js
transform_world
called by 21
Python/LeniaNDK.py
transform_world
called by 20
Python/LeniaND.py

Shape

Method 534
Function 454
Class 20

Languages

Python55%
TypeScript45%

Modules by API surface

JavaScript/libs/plotly-latest.min.js411 symbols
Python/LeniaNDKC.py171 symbols
Python/LeniaNDK.py140 symbols
Python/LeniaND.py140 symbols
Python/old/Lenia.py103 symbols
JavaScript/libs/jsgif/GIFEncoder.js13 symbols
JavaScript/libs/MersenneTwister19937.js12 symbols
JavaScript/libs/jsgif/NeuQuant.js7 symbols
JavaScript/libs/jsgif/LZWEncoder.js7 symbols
Python/tools/Convert.py4 symbols

Dependencies from manifests, versioned

Mako1.1.3 · 1×
MarkupSafe1.1.1 · 1×
Pillow7.1.0 · 1×
funcsigs1.0.2 · 1×
numpy1.16.6 · 1×
reikna0.7.5 · 1×
scipy1.3.3 · 1×

For agents

$ claude mcp add Lenia \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact