[quote] like masking out a light cone
[/quote]
100 points gentleman =D
however… if you are interested, I ended up with this:
g.setColor(new Color(0,0,0,200));
g.fillRect(0,0,1024,500); // above
g.fillRect(0,650,1024,118); // below
g.fillRect(0,500,500,150); // left of it
g.fillRect(650,500,374,150); //right of it
Point2D center = new Point2D.Float(575, 575);
float radius = 75;
float[] dist = {0.0f, 1.0f};
Color[] colors = {new Color(0,0,0,0),new Color(0,0,0,200)};
RadialGradientPaint p =new RadialGradientPaint(center, radius, dist, colors);
g.setPaint(p);
g.fillRect(500,500,150,150);
so basically using a RadialGradientPaint.
because I thought once I got the form I suggested I could easily do a disappearing gradient inside. But it turned out with … well. just ugly
yeah well this works, I might use it in some dark levels or something like that.