Struct cellular_maps::CellularMap [] [src]

pub struct CellularMap { /* fields omitted */ }

Methods

impl CellularMap
[src]

Create a new CellularMap instance.

Arguments

  • w - The desired map width.
  • h - The desired map height.

Example

use cellular_maps::CellularMap;

// Create a 30x30 celular map.
let mut cm = CellularMap::new(30,30);

Get the map width.

Get the map height.

Get the element in position <r,c>.

Initialize a random CellularMap.

Evolve the CellularMap according the automata rules.