FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 646 : colorMode() range fails to work when not size(100, 100)
Last modified: 2007-10-20 04:53
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
kmcdonald
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2007-10-18 14:07
Either 126 or 127 introduced this bug. The following code draws white
(correct) if w = 100 and h = 100, but black (incorrect) otherwise.
int w = 100;
int h = 100;
void setup() {
size(w, h);
colorMode(RGB, 1);
}
void draw() {
background(1);
}
Additional Comment
#1 From kmcdonald 2007-10-18 14:17
Or possibly in 128. I know it stops working in 128 and 129, but it works in
125.
Additional Comment
#2 From fry 2007-10-20 04:53
fixed for 0130, thanks for the report.