static void fillRect(BufferedImage image, int x, int y, int w, int h, Color color) { Graphics2D g = imageGraphics(image); g.setColor(color); g.fillRect(x, y, w, h); g.dispose(); } // draw on currentImage() static void fillRect(int x, int y, int w, int h, Color color) { fillRect(currentImage(), x, y, w, h, color); } static void fillRect(Rect r, Color color) { fillRect(r.x, r.y, r.w, r.h, color); } ifclass Rect static void fillRect(BufferedImage image, Rect r, Color c) { if (r != null) fillRect(image, r.x, r.y, r.w, r.h, c); } endif