Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Gauge Smithee
- Mount Rushmore
- */
- PImage mtRush;
- int x,y;
- void setup() {
- size(640,480);
- mtRush = loadImage("MtRush.jpg");
- x = 0;
- y = 0;
- }
- void draw() {
- image(mtRush,x,y);
- if(mousePressed){
- if (mouseX > 30 && mouseX < 200 && mouseY > 60 && mouseY <230) {
- text("George Washinton",30,60);
- }else if (mouseX > 200 && mouseX < 310 && mouseY > 135 && mouseY < 290) {
- text("Thomas Jefferson", 200, 130);
- }else if (mouseX > 310 && mouseX < 405 && mouseY > 215 && mouseY < 385) {
- text("Theodore Roosevelt", 310, 205);
- }else if (mouseX > 445 && mouseX < 590 && mouseY > 185 && mouseY < 380) {
- text("Abraham Lincoln", 450, 180);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement