Spectacular Cellular Automata
Website
Source Repository
Jira
Documents
Preparing search index...
lib/simulation
countMooresNeighbours
Function countMooresNeighbours
countMooresNeighbours
(
cells
:
Uint8Array
<
ArrayBufferLike
>
,
w
:
number
,
h
:
number
,
x
:
number
,
y
:
number
,
)
:
number
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.
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Website
Source Repository
Jira
Documents
Spectacular Cellular Automata
Loading...
Count Moore's Neighbours