Intermact API Reference / @intermact/core / stepLife2D
Function: stepLife2D()
stepLife2D(
grid,width,height):Uint8Array
Defined in: packages/core/src/pcg/cellular-automaton.ts:69
Advance one step of Conway's Game of Life on a fixed (non-wrapping) grid.
Parameters
grid
Uint8Array
width
number
height
number
Returns
Uint8Array