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
How to draw a transparent shape with dash border [closed]
-
14-10-2022 - |
Domanda
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
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow