Processing+-+Easy+Button

code format="java" //Author: Miss Hines //Description: This program makes an Easy Button!

void setup { //sets up the window size(400, 400);

}

void draw {

background(255); noStroke; fill(255, 0, 0); //red rect(100, 150, 50, 75); //button fill(0, 0, 0); //black text("Easy", 115, 200);

//checking boundaries if(mousePressed == true    && mouseX > 100 /*left boundary*/     && mouseX < 100 + 50 /*right boundary*/     && mouseY > 150 /*top boundary*/     && mouseY < 150 + 75 /*bottom boundary*/     ) {

println("That was easy!!!"); }

} code