cellSet method

void cellSet(
  1. int x,
  2. int y,
  3. bool value
)

Sets the value of a cell at the specified coordinates.

Does nothing if the coordinates are out of bounds.

Implementation

void cellSet(final int x, final int y, bool value) {
  assert(_isValidXY(x, y) == true);
  _matrix[y * cols + x] = value ? 1 : 0;
}