문제

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top