|
Author |
Topic: this must have come up before... (Read 325 times) |
|
nluken
|
this must have come up before...
« on: Nov 27th, 2002, 4:40am » |
|
but I can't find the reference...this is really basic, and is more a documentation problem than anything. Please bear with me.... this code works fine, making a long skinny window for processing: void setup(){ size(1000,75); colorMode(RGB); background(0); } void loop(){ } while flipping the colorMode() and the size() commands gives you the default 100x100 window. I seem to remember that there's some issue with the order of commands in setup(), but couldn't remember it for what felt like forever. You guys might want to put a little blurb in the documentation of the size() command as a reminder of this behavior, or if there are other quirks, make a documentation entry for the setup() function. thanks again. -noah luken.
|
|
|
|
fry
|
Re: this must have come up before...
« Reply #1 on: Nov 27th, 2002, 7:19am » |
|
yeah, size() has to come first, because it sets up all the graphics stuff underneath.. i coulda sworn we had that somewhere, but you're right.. that's an important one. easy enough to make a note of that. hopefully this won't be a restriction in the future. thanks for the note..
|
|
|
|
fry
|
Re: this must have come up before...
« Reply #2 on: Sep 2nd, 2003, 8:05am » |
|
as of rev 60, size() no longer needs to come first. rejoice.
|
|
|
|
|