int numPics = 20; float r1 = 0; String imageName; int upDown = -835; PImage[] pictures = new PImage[numPics]; void setup() { size(1000,667,P3D); for(int i=0; i -836) { upDown = -835; } if (upDown < -2836) { upDown = -2835; } pushMatrix(); float z = map(mouseX, 0,1000, -10000,0); translate(0,500,z); for(int n=0; n<4; n++) { translate(0,667,0); imageMode(CENTER); image(pictures[n], 0,0); } popMatrix(); pushMatrix(); rotate((PI*2)/5); translate(0,500,z); for(int n=4; n<8; n++) { translate(0,667,0); imageMode(CENTER); image(pictures[n], 0,0); } popMatrix(); pushMatrix(); rotate((PI*2)/2.5); translate(0,500,z); for(int n=8; n<12; n++) { translate(0,667,0); imageMode(CENTER); image(pictures[n], 0,0); } popMatrix(); pushMatrix(); rotate((PI*2)/1.25); translate(0,500,z); for(int n=12; n<16; n++) { translate(0,667,0); imageMode(CENTER); image(pictures[n], 0,0); } popMatrix(); pushMatrix(); rotate((PI*2)/.625); translate(0,500,z); for(int n=16; n<20; n++) { translate(0,667,0); imageMode(CENTER); image(pictures[n], 0,0); } popMatrix(); } void keyPressed() { if(key == CODED) { if (keyCode == DOWN) { upDown -= 667; } if(keyCode == UP) { upDown += 667; } if(keyCode == LEFT) { r1 += ((PI*2)/5); } if(keyCode == RIGHT) { r1 -= ((PI*2)/5); } } }