FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Bug Fixes, Implemented Suggestions
(Moderator: fry)
   background() before size()
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: background() before size()  (Read 494 times)
mr.prufrock

WWW Email
background() before size()
« on: Jul 30th, 2003, 12:25am »

just noticed that, in setup(), if you have background() method before the size() method; the size() method doesn't work.
 
- - - - - - - - - -
 
 
void setup() {
 
  // this doesn't work
  background(255);
  size( 400, 400 );
   
  /* this works
  size(400, 400);
  background(255);
  */
}
 
void loop() {
   
}
« Last Edit: Jul 30th, 2003, 12:28am by mr.prufrock »  

I grow old...I grow old
I shall wear the bottoms of my trousers rolled.
fry


WWW
Re: background() before size()
« Reply #1 on: Jul 30th, 2003, 1:39am »

yep, from the readme:
 
Code:
- size() must also be the first thing inside setup(). we hope to fix
  this in the future, but the issue is pricklier than might be expected.

and mentioned in the reference:
http://proce55ing.net/reference/size_.html
 
it sucks and we're hoping to find a fix..
 
fry


WWW
Re: background() before size()
« Reply #2 on: Sep 2nd, 2003, 8:10am »

no longer the case as of rev 60, available soon.
 
Pages: 1 

« Previous topic | Next topic »