(cell, x, y)
| 55 | const buf = new Uint32Array(data.data.buffer); |
| 56 | |
| 57 | function paint(cell, x, y) { // <4> |
| 58 | buf[SIZE * x + y] = cell ? BLACK : WHITE; |
| 59 | } |
| 60 | |
| 61 | const grid = new Grid(SIZE, new ArrayBuffer(2 * SIZE * SIZE), paint); // <5> |
| 62 | for (let x = 0; x < SIZE; x++) { // <6> |