svoid bwFillRect(BWImage img, int x1, int y1, int w, int h, float color) { for y to h: for x to w: img.setPixel(x1+x, y1+y, color); }