int x2 = x + w; int y2 = y + h; for (int xc = x; xc < x2; xc++) { for (int yc = y; yc < y2; yc++) { drawPixel(xc, yc); } }
fill(new Rectangle(x, y, w, h));
  protected void rawFillRect(int x, int y, int w, int h)  {    int x2 = x + w;    int y2 = y + h;    for (int xc = x; xc < x2; xc++)      {        for (int yc = y; yc < y2; yc++)          {            drawPixel(xc, yc);          }      }  }