Crate lifers_raylib

Crate lifers_raylib 

Source
Expand description

Raylib frontend for lifers.

Provides RaylibFrontend implementations that do all the displaying and rendering work. It’s recommended to use FrontendBuilder for convenience.

NOTE: See corresponding modules for different kinds of automata.

The frontend can be used in an event loop, similar to a typical Raylib application:

let game = /* Automaton */
let mut frontend = FrontendBuilder::new((480, 480))
    .finish(game);

while !frontend.window_should_close() {
    frontend.display_grid();
    frontend.tick();
}

Modules§

generic
Implementation of the frontend for generic automata.
life_like
Alternative implementation for life-like automata.

Macros§

map_vecs
Maps a function to both coordinates of all given vectors.