test1

void setup() {
size(300, 300);
}

void draw() {
if(mouseX < width/3) {
background(255);
} else if (mouseX < 2*width/3){
background (127);
} else{
background(0);
}
}

Leave a Reply