Bug 1427 : width and height variables affect window size but not sketch
Last modified: 2010-01-05 10:36




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
Requiem4Tv
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2010-01-05 10:33
Processing 1.0.9 on Ubuntu 9.10

This piece of code:

width = 640;
height = 360;
//size(width,height);
background(0);
print(width);

produces a window with the size defined in width an height but the sketch
size inside the window appears only on 100 by 100px.

Not really sure that's a feature.

Un-commenting the size() function doesn't solve the problem.
Additional Comment #1 From fry 2010-01-05 10:36
Never assign width and height, only use the size() command. And the size()
command must always be the first line in setup().