// A new variable, for gravity (i.e. acceleration). // We use a relatively small number (0.1) because this accelerations accumulates over time, increasing the speed. // Try changing this number to 2.0 and see what happens. PFont fontA; float w, x, y, z, dx, dy; float[][][] data; float angleX=0; float angleY=0; float angleZ=0; float scaleZ=50; float theta=0.01; int mouseX_old; int mouseY_old; int i, j, xsize, ysize; void setup() { size(600,600,P3D); smooth(); fontA = loadFont("ComicSansMS-Bold-32.vlw"); textAlign(CENTER); textFont(fontA, 8); w=2.; dx=dy=0.1; xsize=(int)(2*w/dx+1); ysize=(int)(2*w/dy+1); data = new float[xsize][ysize][3]; for(i=0; i