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,
我一直在使用java api 2D,我试图找出如何用镜面效果颜色制作方形填充,例如,
g.drawRect(0,0,40,40)
g.fill(Color) //is it possible to get a translucid color? like a mirror effect
1 个解决方案
#1
2
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
您想要在绘制Shape时更改Graphics上下文使用的Stroke。有关更多详细信息,请查看Stroking和Filling Graphics Primitives
#1
2
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
您想要在绘制Shape时更改Graphics上下文使用的Stroke。有关更多详细信息,请查看Stroking和Filling Graphics Primitives