// Dartmouth CS 2, Winter 2009, Chris Bailey-Kellogg // Notes 5 | Sketch 6 void draw() { if (mouseX>25 && mouseX<75 && mouseY>40 && mouseY<60) // Inside rectangle, so make it yellow fill(255,255,0); else // Outside rectangle, so make it green fill(0,255,0); rect(25,40,50,20); }