I have been using the java api 2D, i'm trying to figure out how to make my square fill with a mirror effect color, For example,
g.drawRect(0,0,40,40)
g.fill(Color) //is it possible to get a translucid color? like a mirror effect
You want to change the Stroke
used by the Graphics
context when it draws a Shape
. Take a look at Stroking and Filling Graphics Primitives for more details