rgrow.Simulation.canvas_copy#
- Simulation.canvas_copy(state_index: int = 0) ndarray#
Returns a copy of the current canvas for state_index (default 0). This array will not update as the simulation evolves.
- Parameters:
- state_indexint, optional
The index of the state to return. Defaults to 0.
- Returns:
- numpy.ndarray[int]
The current canvas for the state.