|
Author |
Topic: background() before size() (Read 494 times) |
|
mr.prufrock
|
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
|
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
|
Re: background() before size()
« Reply #2 on: Sep 2nd, 2003, 8:10am » |
|
no longer the case as of rev 60, available soon.
|
|
|
|
|