//INCLUDE DIRECTIVES //peasycam is a camera library available at http://mrfeinberg.com/peasycam/ import peasy.*; //GLOBAL VARIABLES int imgWidth = 193; int imgHeight = 220; //pixel arrays int[][] pixel = new int[imgWidth][imgHeight]; int[][] rVal = new int[imgWidth][imgHeight]; int[][] gVal = new int[imgWidth][imgHeight]; int[][] bVal = new int[imgWidth][imgHeight]; //image variable PImage img; //camera PeasyCam cam; //The SETUP method is called once when the applet/application starts off. //Consider this a 'point or method of entry' void setup() { //size method declares the size of the applet window and to use the 3d //libraries (P3D or OPENGL it must be declared in this size method size(400,400,P3D); img = loadImage("me.jpg"); //load the image image(img,0,0); //draw the image at 0,0 cam = new PeasyCam(this,350); //declare the camera cam.lookAt(width/2+30, height/2,0); cam.rotateY(0.05); for(int i = 0; i