In “sketch #2: local count”, this line:
count = count = 1;
should be written as:
count = count + 1;
In addition, the code comments should not wrap around to the next line, the whole code should look like this:
// Sketch #1: Global "count"
int count = 0;
void setup() {
size(200,200);
}
void draw() {
count = count + 1;
background(count);
}
// Sketch #2: Local "count"
void setup() {
size(200,200);
}
void draw() {
int count = 0;
count = count + 1;
background(count);
}








