///x4 int r, g, b; String title= "Click Me!"; float button1X=200, button1Y=200, button1W=80, button1H=80; int counter=0; void setup() { background(200, 180, 150); size( 400, 400); reset(); } void draw() { button( button1X, button1Y, button1W, button1H); } void reset () { r= 210; g= 240; b= 80; } void button( float x, float y, float w, float, h ) { fill(255, 0, 0); ellipse( 200, 200, 80, 80); } void mousePressed() { if ( hit (mouseX, mouseY, button1X, button1Y, button1W, button1H ) ) { counter= counter+1; if (counter % 2 > 0) { r= 160; g= 200; b= 80; } else { reset(); } } }