Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BirdbrainEngineer/lenia
/ functions
Functions
13 in github.com/BirdbrainEngineer/lenia
⨍
Functions
13
◇
Types & classes
1
↓ 3 callers
Function
random_uniform
Generates an n-dimensional field with uniformly random values. ### Parameters `shape` - Shape of the field to generate and fill. `scaler` - Random
src/seeders.rs:25
↓ 2 callers
Function
new_lenia
( lenia_simulator: &mut lenia_ca::Simulator<ExpandedLenia>, kernel_radius: usize, num_channels: u
src/main.rs:319
↓ 1 callers
Function
adjust_lenia
(lenia_simulator: &mut lenia_ca::Simulator<ExpandedLenia>, rulevec: &Vec<Vec<f64>>, maximum_adjust: f64, kerne
src/main.rs:496
↓ 1 callers
Function
constant
Generates an n-dimensional field with the shape `shape`, filled with `constant`.
src/seeders.rs:11
↓ 1 callers
Function
cumulate_lenia
( lenia_simulator: &mut lenia_ca::Simulator<ExpandedLenia>, rules: &mut Vec<Vec<f64>>, maximum_a
src/main.rs:431
↓ 1 callers
Function
euclidean_dist
Euclidean distance between points `a` and `b`.
src/seeders.rs:199
↓ 1 callers
Function
random_hyperspheres
Generates an n-dimensional field with multiple n-dimensional hyperspheres, filled with uniformly random values. Individual hyperspheres are placed at
src/seeders.rs:147
Function
format_vec_f64
(v: &Vec<f64>, decimal_digits: usize)
src/main.rs:566
Method
handle_input
(_info: &CanvasInfo, keyboard: &mut KeyboardState, event: &Event<()>)
src/keyboardhandler.rs:17
Function
main
()
src/main.rs:53
Method
new
()
src/keyboardhandler.rs:11
Function
random_hypercubic
Generates an n-dimensional field with uniformly random values in an n-dimensional hypercube placed at the center of the field. ### Parameters `shape
src/seeders.rs:50
Function
random_hypercubic_patches
Generates an n-dimensional field with multiple n-dimensional hypercubes, filled with uniformly random values. Individual hypercubes are placed at rand
src/seeders.rs:89