/* Matt Martell IAT 800 - Dr. Christopher Shaw Due Oct. 6, 2008 A2-12 - Create a button that changes the color of the background when it is clicked. */ void setup() { background (3444); size(400,400); smooth(); stroke(230,230,250); } //Variables int value = 0; void draw () { background (value); fill(0,255,0); ellipse (200, 200,300 ,300); } //Create Button void mousePressed() { if (value == 0) { value =(125); } else { value =0; } }