FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1427 : width and height variables affect window size but not sketch
Last modified: 2010-01-05 10:36
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
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().