//if3.pde //note that when X>200, it is also true that X>100 void setup() { size( 500, 500 ); smooth(); } void draw() { if ( mouseX > 200 ) { background( 255, 0, 0 ); } if ( mouseX > 100 ) { background( 0, 0, 255 ); } }