hajar424 Posted July 10, 2015 Share Posted July 10, 2015 I would like to use g.fillrect... but in a transparent color, so how do you do that Quote Link to comment Share on other sites More sharing options...
Precise Posted July 10, 2015 Share 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 Quote Link to comment Share on other sites More sharing options...
Czar Posted July 10, 2015 Share 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 Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted July 10, 2015 Share Posted July 10, 2015 you can simply do: g.setColor(new Color(0,0,0,150)); R,G,B,Trans GL ;) 2 Quote Link to comment Share on other sites More sharing options...