PImage img, topleft, topright, btleft, btright; float x; float y; void setup() { size(200, 200); img = loadImage("dome2.jpg"); // Load the images into the program topleft = new PImage(img.width/2,height/2); topright = new PImage(img.width/2,height/2); btleft = new PImage(img.width/2,height/2); btright = new PImage(img.width/2,height/2); } void draw() { background(0); topleft.copy(img,0,0,img.width/2,img.height/2,0,0,width/2,height/2); topleft.updatePixels(); image(topleft,x+random(10),y+random(10)); topright.copy(img,img.width/2,0,img.width/2,img.height/2,0,0,width/2,height/2); topright.updatePixels(); image(topright,x+100+random(10),y+random(10)); btright.copy(img,img.width/2,img.height/2,img.width/2,height,0,0,width/2,height/2); btright.updatePixels(); image(btright,x+100+random(10),y+100+random(10)); btleft.copy(img,0,img.height/2,img.width/2,height,0,0,topleft.width/2,height/2); btleft.updatePixels(); image(btleft,x+random(10),y+100+random(10)); //x += 0.1;*/ }