Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Midterm Work in Progress
- // "You've Been Hacked"
- // March 7th, 2018
- //Amy Pinilla
- PImage background; //background image
- PImage processing; //2nd image
- float a= 1440; //width of background image
- float b= 900; // height of background image
- int state;
- void setup() {
- fullScreen();
- noStroke();
- background (0);
- background = loadImage ("FINAL.png");
- processing = loadImage ("processing.png");
- //First Image of Desktop
- image (background, width/width, height/height, a, b);
- state = 0;
- }
- void draw () {
- if (state == 1) {
- image (processing, width/width, height/height, a, b);
- }
- }
- //Open Processing folder
- void mouseReleased () {
- if ((mouseX > 1336) && (mouseX < width) && (mouseY > 344) && (mouseY < 468)) {
- state = 1;
- }
- }
Add Comment
Please, Sign In to add comment