Hi
I’m working with xith3d and as part of the overlay package you can draw what you want right onto a Grahpics2D, i’m trying to create a component that is semi transparent, but then gets text placed on it, the text will update so when it does I need to rewrite the bits behind the text to remove the old stuff.
I’ve tried graphics.setBackground(new Color(0,0,0,0)); graphics.clearRect(0,0,width-1,height-1); but it doesn’t seem to actually clear it. So i tried graphics.setColor(new Color(0,0,0,0)); graphics.fillRect(0,0,width-1,height-1); but that doesn’t seem to do it either. It has been suggested that the reason it has no effect is because the colour has an alpha of 0. Is there any way I can wipe the graphics 2D to have 0,0,0,0 in all pixels?
Cheers
Endolf