Classes
Members
(static) draw
Drawing the current grid values on given canvas.
(static) findNeighbours
Returns the amount of nearby members
of the target cell at [x,y] point on grid.
(static) nextStep
Returns an updated grid(game board) after one step according
to the game's rules.
- Source:
- See:
(static) populateGrid
Sets the given pattern(coordinates) on given grid.
(static) setupCanvas
Setups canvas context and binds it to the canvas object.
(static) setupGrid
Returns new grid by given rows and lines size
and initialized with given pattern.