import fastarray.*; float x, y, a, b, c, d; int xPix, yPix, freqX, freqY, maxFreqX, maxFreqY; int T,I; int[] hist; FastArray3Dint data; float rotY, rotX; int alpha; UIbutton bu1,bu2,bu3,bu4; void setup(){ size(600,600,P3D); background(255); colorMode(HSB); alpha = 24; textFont(loadFont("Silkscreen-8.vlw") ,8); bu1 = new UIbutton(150, height-20, "a", false); bu2 = new UIbutton(250, height-20, "b",false); bu3 = new UIbutton(350,height-20, "c",false); bu4 = new UIbutton(450, height-20, "d",false); T = 256; I = 512; data = new FastArray3Dint(this, T,I,2); createAttractor(1); } void draw(){ //println(framerate); background(255); pushMatrix(); translate(width*.5, 0, -100); if (!mousePressed)// rotY +=1.8; rotateY(-radians(rotY)); translate(-width*.5, 0, +100); translate(0, height*.5, -100); rotateX(-radians(rotX)); translate(0,-height*.5, +100); translate((width-height)/2,0,0); for (int t=0;t