// Face3D - Based on Zoom by REAS // // Author: Jorge Cardoso // http://jorgecardoso.org // // 2 July 2005 /* window size */ int windowWidth = 400; int windowHeight = 250; PImage a; int[][] aPixels; /* Resolution of the image */ int res = 2; /* current rotation angle */ float rotX = 0; float rotY = 0; /* origin of the image on screen */ int originX; int originY; void setup() { size(windowWidth, windowHeight, P3D); noFill(); stroke(255); a = loadImage("foto.jpg"); aPixels = new int[a.width][a.height]; /* center image on screen */ originX = (width - a.width)/2; originY = (height - a.height)/2; /* copy image to array */ for(int i=0; i