Advertisement
Gauge1417

MountRush

Dec 2nd, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. /* Gauge Smithee
  2. Mount Rushmore
  3. */
  4. PImage mtRush;
  5. int x,y;
  6.  
  7. void setup() {
  8. size(640,480);
  9. mtRush = loadImage("MtRush.jpg");
  10. x = 0;
  11. y = 0;
  12. }
  13. void draw() {
  14. image(mtRush,x,y);
  15. if(mousePressed){
  16. if (mouseX > 30 && mouseX < 200 && mouseY > 60 && mouseY <230) {
  17. text("George Washinton",30,60);
  18. }else if (mouseX > 200 && mouseX < 310 && mouseY > 135 && mouseY < 290) {
  19. text("Thomas Jefferson", 200, 130);
  20. }else if (mouseX > 310 && mouseX < 405 && mouseY > 215 && mouseY < 385) {
  21. text("Theodore Roosevelt", 310, 205);
  22. }else if (mouseX > 445 && mouseX < 590 && mouseY > 185 && mouseY < 380) {
  23. text("Abraham Lincoln", 450, 180);
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement