Giter Club home page Giter Club logo

particlelenia.jl's Introduction

Particle Lenia for Julia

plenia.jl is a Particle Lenia implementation for Julia based on the work Particle Lenia and the energy-based formulation by Alexander Mordvintsev et al. (2022). The patterns and cell-like behavior shown in the video below are produced by an artificial "life" system that is called "Particle Lenia" -- based on the name Lenia Mathematical Lifeforms, which in itself is based on John Conway's Game of Life.

Particle Lenia's are systems of Ordinary Differential Equations (ODE) described by a collection of point particles $\boldsymbol{p_i}$ and the interaction with each other. Each particle is assigned an unique position $\boldsymbol{p_i} = [x_i, y_i]^\top$ together with an continuous energy field $E_i(\boldsymbol{x}) = R_i(\boldsymbol{x}) - G_i(\boldsymbol{x})$, being the repulsive and growth energy field, respectively. We refer to Mordvintsev et al. for the expressions of these fields. The dynamics for this system of particles arise from the gradient of the total energy $E = \sum E_i$, simply put, it reads as follows: $$\dot{\boldsymbol{p_i}} = -\nabla E(\boldsymbol{p_i}) $$

Despite its mathematical simplicity, the dynamics of such systems lead to interesting (stable) limit cycles, that are reminiscent to the behavior of microscopic organisms in water or single-cell organisms.

plenia.mp4

Running code

To run a Particle Lenia simulation, simply call:

julia main.jl

particlelenia.jl's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.