Spectacular Cellular Automata
    Preparing search index...

    Function countMooresNeighbours

    • Count Moore's Neighbours

      Parameters

      • cells: Uint8Array<ArrayBufferLike>

        Array of cells.

      • w: number

        Cell grid width.

      • h: number

        Cell grid height.

      • x: number

        Cell X.

      • y: number

        Cell Y.

      Returns number

      • The number of Moore's Neighbours.