set method

dynamic set(
  1. int x,
  2. int y,
  3. bool v
)

Implementation

set(int x, int y, bool v) {
  _data[y * width + x] = v ? 1 : 0;
}