/* In this example, the background is one color when the mouse button is down and another color when the mouse button is not down. */ // This function is executed only once, at the very beginning void setup() { size(500,400); background(255); } // This function is repeatedly call in an implicit loop. // A single call is responsible for drawing a single frame. void draw() { } void mousePressed() { background(255, 127, 127); } void mouseReleased() { background(255); }