Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Naida Enriquez
- Mount Rushmore
- */
- PImage MountRushmore;
- int x,y;
- void setup() {
- size(640,480);
- MountRushmore = loadImage("MountRushmore.jpg");
- x = 0;
- y = 0;
- }
- void draw() {
- image(MountRushmore,x,y);
- if(mousePressed){
- if(mouseX > 30 && mouseX < 200 && mouseY > 60 && mouseY < 230) {
- text("George Washington",30,60);
- }else if (mouseX > 200 && mouseX < 310 && mouseY > 135 && mouseY < 290) { text("Thomas Jefferson", 200, 130);
- }else if (310 < mouseX < 595 && 180 < mouseY <380);
- { text("Theodore Roosevelt" ,360, 295);
- }else if (440 < mouseX < 595 && 180 < mouseY < 380);
- { text("Abraham Lincoln" ,517,280);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement