code: public void fill(Graphics2D g, Shape s) {
          Rectangle bounds = s.getBounds();
          int       width  = bounds.width;
          int       height = bounds.height;
  
          BufferedImage bimage = Effect.createBufferedImage(width, height, true);
          Graphics2D    gbi    = bimage.createGraphics();
  
          gbi.setColor(Color.BLACK);
          gbi.fill(s);
  
          g.drawImage(applyEffect(bimage, null, width, height), 0, 0, null);
      }
docs: Paint the effect based around a solid shape in the graphics supplied.
  
  @param g the graphics to paint into.
  @param s the shape to base the effect around.