Spectacular Cellular Automata
    Preparing search index...

    Function nextCells

    • Return the grid of cells after one step.

      Parameters

      • cells: Uint8Array<ArrayBufferLike>

        Array of cells.

      • w: number

        Cell grid width.

      • h: number

        Cell grid height.

      • nextCell: (arg0: number, arg1: number) => number

        The rule function to apply (e,g., gameOfLifeRule, briansBrainRule)

      Returns Uint8Array<ArrayBufferLike>