hajar424 Posted July 10, 2015 Posted July 10, 2015 I would like to use g.fillrect... but in a transparent color, so how do you do that
Precise Posted July 10, 2015 Posted July 10, 2015 I would like to use g.fillrect... but in a transparent color, so how do you do that i assume no fill? so g.drawRect
Czar Posted July 10, 2015 Posted July 10, 2015 You need to define an alpha in the color, or just do graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.75f)); for 75% transparency
Khaleesi Posted July 10, 2015 Posted July 10, 2015 you can simply do: g.setColor(new Color(0,0,0,150)); R,G,B,Trans GL ;) 2