float x = 100; float y = 50; float w = 150; float h = 80; void setup(){ size(500,500); background(255); stroke(0); noFill(); } void draw(){ background(255); rect(x,y,w,h); fill(100,0,0); textSize(50); text("word", x+w/2, y+h/2); textAlign(CENTER, CENTER); rect(x+200,y,w,h); fill(0,100,0); rect(x+200,y+200,w,h); fill(0,0,100); if(mousePressed){ if(mouseX>x && mouseX y && mouseY x && mouseX y && mouseY