Bug 646 : colorMode() range fails to work when not size(100, 100)
Last modified: 2007-10-20 04:53




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

 

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.