lenia_ca

This crate has the core functionality for simulating the Lenia system of cellular automata. For more comprehensive documentation, please visit the docs.rs page for this crate.

At the time of publishing of this repository and crate, docs.rs does not allow embedding of images (not easily, anyways) in the documentation, and as a result, below are a few graphics viewable on Github showing the working principle of the two types of Lenia that the lenia_ca crate is able to simulate.

The working principle for StandardLenia is the following:

use set_kernel() to change how the kernel looks.

use set_growth_function() to set a specific growth function for the convolution result.

use set_dt() to change the integration-step of the simulation.

Image representation of the algorithm on GitHub

The working principle for ExpandedLenia is the following:

Image representation of the algorithm on GitHub

use set_channels() to set the number of channels in the simulation.

use set_convolution_channels() to set the number of kernels and the associated growth functions.

use set_convolution_channel_source() to set the channel which will be convoluted by a particular kernel.

use set_kernel() to change how a convolution_channel's kernel looks like.

use set_growth_function() to set a specific growth function for the convolution result.

use set_weights() to set a channel's weights for the corresponding convolution channel results.

use set_dt() to change the integration-step of the simulation.