rgrow.Simulation.canvas_copy#

Simulation.canvas_copy(state_index=...)#

Returns the current canvas for state_index (default 0), as an array copy.

Parameters:
state_indexint, optional

The index of the state to return. Defaults to 0.

Returns:
numpy.ndarray[int]

The current canvas for the state, copied.