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 & HelpIntegration › Application, surrounding colour
Page Index Toggle Pages: 1
Application, surrounding colour (Read 974 times)
Application, surrounding colour
Oct 21st, 2009, 2:08pm
 
When a sketch is either presented or run as an application, the sketch is surrounded by a gray color. Is it possible to change this?
Re: Application, surrounding colour
Reply #1 - Oct 21st, 2009, 2:16pm
 
yes, and we had this discussion just some days ago...
actually most of the questions have been answered Smiley
http://processing.org/discourse/yabb2/num_1249916560.html

Code:
void setup() {
size(400, 300); // always call size first
// int 0 .. 255
frame.setBackground(new Color(64, 128, 192));
// or float 0.0 .. 1.0
frame.setBackground(new Color(random(1.0), random(1.0), random(1.0)));
}
Re: Application, surrounding colour
Reply #2 - Oct 21st, 2009, 2:35pm
 
great - thanks
Page Index Toggle Pages: 1