//// Exercrise //// yixing tao 9/30/2015 //size of the screen void setup() { size(600, 250); reset(); } void reset() { r=100; g=200; b=0; //background and botton background(r, g, b); fill(0, 150, 100); rect(200, 150, 25, 25); text("here!", 200,150); } //key void keyPressed(){ if(key== 'q') exit(); if(key== 'r') reset(); } //mouse click void mousePressed(){ if( hit(mouseX, mouseY,60, 60, 60,50));{ background(r+50, g-80, b+20);}