static BufferedImage renderShape(Color bg default Color.white, Shape shape, int w, int h) { BufferedImage img = newBufferedImage(w, h, bg); Graphics2D g = img.createGraphics(); g.setColor(Color.black); g.fill(shape); ret img; }