MCPcopy Create free account

hub / github.com/BirdbrainEngineer/lenia / functions

Functions13 in github.com/BirdbrainEngineer/lenia

↓ 3 callersFunctionrandom_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 callersFunctionnew_lenia
( lenia_simulator: &mut lenia_ca::Simulator<ExpandedLenia>, kernel_radius: usize, num_channels: u
src/main.rs:319
↓ 1 callersFunctionadjust_lenia
(lenia_simulator: &mut lenia_ca::Simulator<ExpandedLenia>, rulevec: &Vec<Vec<f64>>, maximum_adjust: f64, kerne
src/main.rs:496
↓ 1 callersFunctionconstant
Generates an n-dimensional field with the shape `shape`, filled with `constant`.
src/seeders.rs:11
↓ 1 callersFunctioncumulate_lenia
( lenia_simulator: &mut lenia_ca::Simulator<ExpandedLenia>, rules: &mut Vec<Vec<f64>>, maximum_a
src/main.rs:431
↓ 1 callersFunctioneuclidean_dist
Euclidean distance between points `a` and `b`.
src/seeders.rs:199
↓ 1 callersFunctionrandom_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
Functionformat_vec_f64
(v: &Vec<f64>, decimal_digits: usize)
src/main.rs:566
Methodhandle_input
(_info: &CanvasInfo, keyboard: &mut KeyboardState, event: &Event<()>)
src/keyboardhandler.rs:17
Functionmain
()
src/main.rs:53
Methodnew
()
src/keyboardhandler.rs:11
Functionrandom_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
Functionrandom_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