Question

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
Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top