int squareSize=30; void setup() { size(800,600,P3D); } void draw() { background(#000000); fill(255); translate(width/3,height*.25,mouseY);//resets zero cumulative rect(0,150,squareSize, squareSize); translate(0,0,-200); rect(0,150,squareSize, squareSize); translate(0,0,-200); rect(0,150,squareSize, squareSize); translate(0,0,-200); rect(0,150,squareSize, squareSize); translate(0,0,-200); rect(0,150,squareSize, squareSize); translate(0,0,-200); rect(0,150,squareSize, squareSize); translate(0,0,-200); rect(0,150,squareSize, squareSize); translate(0,0,-200); //second row translate(width/3,height*.25,mouseY); rect(100,150,squareSize, squareSize); translate(10,0,-300); rect(0,150,squareSize, squareSize); translate(0,0,-300); rect(0,150,squareSize, squareSize); translate(0,0,-300); rect(0,150,squareSize, squareSize); translate(0,0,-300); rect(0,150,squareSize, squareSize); translate(0,0,-300); rect(0,150,squareSize, squareSize); translate(0,0,-300); rect(0,150,squareSize, squareSize); translate(0,0,-300); rect(0,150,squareSize, squareSize); translate(0,0,-300); rect(0,150,squareSize, squareSize); translate(0,0,-300); //3rd row translate(width/3,height*.25,mouseY); rect(0,150,squareSize, squareSize); translate(0,0,-400); rect(0,150,squareSize, squareSize); translate(0,0,-400); rect(0,150,squareSize, squareSize); translate(0,0,-400); rect(0,150,squareSize, squareSize); translate(0,0,-400); rect(0,150,squareSize, squareSize); translate(0,0,-400); rect(0,150,squareSize, squareSize); translate(0,0,-400); rect(0,150,squareSize, squareSize); translate(0,0,-400); rect(0,150,squareSize, squareSize); translate(0,0,-400); rect(0,150,squareSize, squareSize); translate(0,0,-400); } //spend time sketching out what you want your image gallery to look like //in 3d space grid of rectangles 27