void setRegion(int left, int top, int width, int height, bool v) { for (int y = top; y < top + height; y++) { for (int x = left; x < left + width; x++) { set(x, y, v); } } }