void set(int x, int y, [bool value = true]) { if (x < 0 || y < 0 || x >= width || y >= height) return; bits[y * width + x] = value ? 1 : 0; }