class NewTunnel{ float[] anglex, angley, anglez; float[] ratios; color[] colors; boolean[] areboxes; float[] boxes; boolean[] arerings; int cycle; int mars; float ringangle = 0; int cspeed = 5; float wwe = 0; NewTunnel(){ mars = 300; anglex = new float[mars]; angley = new float[mars]; anglez = new float[mars]; ratios = new float[mars]; colors = new color[mars]; areboxes = new boolean[mars]; boxes = new float[mars]; arerings = new boolean[mars]; float ax = 0; float ay = 0; float az = 0; float toax = 0; float toay = 0; float toaz = 0; float dax = 0; float dAy = 0; float daz = 0; int fixsteps = 200; for(int i=0; i8 areboxes[i] = true; boxes[i] = random(ratios[i])-ratios[i]*.5; } else{ areboxes[i] = false; }; if(i%80==0){ arerings[i] = true; } else{ arerings[i] = false; } }; cycle = 0; } void draw(){ pushStyle(); colorMode(RGB); background(255,0,0); //lights(); translate(width*.5, height*.5+20, 300); rotate(wwe); wwe+=PI/30; scale(1.5); strokeWeight(1); //noFill(); float percent=max(0,(zpectral.myFFT.max-zpectral.minLimit)/zpectral.limitDiff); scale(1+percent/20); for(int i=0; i