We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › how to hide window frame or set background opacity
Pages: 1 2 
how to hide window frame or set background opacity (Read 9145 times)
Re: how to hide window frame or set background opacity
Reply #15 - Mar 3rd, 2010, 7:51am
 
@Cedric:
this post would be nice, if i'd want to move my per-pixel transparent frame;)
but first of all i'd need to get it partly transparent. or did i miss something there?
Re: how to hide window frame or set background opacity
Reply #16 - Mar 3rd, 2010, 8:10am
 
it just tells you how to hide the window frame, so it only answers the first part of " how to hide window frame or set background opacity"

for the second part check out this link http://workshop.evolutionzone.com/2009/09/29/hack-non-standard-windows-in-processing/

http://www.visualinformation.org/2009/09/25/transparent-application-window-in-processing/
Re: how to hide window frame or set background opacity
Reply #17 - Apr 3rd, 2010, 2:45pm
 
I've played around with this example code and the one found on javas website :


The Swing version correctly enables per-pixel translucency of the background.  I can have a solid foreground object like a button, and have the background highly translucent.

I cannot, however, convince Processing to work the same.  While it can be made to have shapes and transparency of the rectangle over the top of a background, I cannot seem to convince it to have a solid foreground object and translucent background.

Anyone with experience with Processing able to shed light on this problem? Is it because PApplet descends from AWT rather than Swing? (just a stab in the dark right now).
Re: how to hide window frame or set background opacity
Reply #18 - Apr 4th, 2010, 10:16pm
 
I spent little more time on this. It's not due to PApplet extending Frame, because Frame works just fine when you turn off the decorations.  (tested with a vanilla Frame).
I believe PApplet must be doing something in init() that overrides the background alpha.
Re: how to hide window frame or set background opacity
Reply #19 - May 20th, 2010, 5:31am
 
A little update.

New Java update today on MacOSX. The AWT-related shaped window still isn't working. Hmm. Thought that it would do the trick today. Maybe next time, eh? The transparency looks fine though.

/JohanW
http://visualinformation.org
Pages: 1 2