class Flag{ PImage[] flags; PImage world; PImage splash; int total, kurrent; int w, h; int spacing; int f = 0; boolean trigger = false; PFont myFont; String txt; float txtslide = 0; Oklr oklr; Lnr lnr; int bars = 130; int bpm = 120; int fps = 30; int maxframes = (3*60+22)*30+1; int daframe = 0; int oldbeat = -1; Flag(){ oklr = new Oklr(); lnr = new Lnr(); myFont = createFont("coyarzunAtari _normal", 8); textFont(myFont); world = loadImage("world_bn.gif"); splash = loadImage("flag_app.gif"); total = 245; flags = new PImage[total]; for(int i=0; i90)kurrent = int(random(total)); w = flags[kurrent].width; h = flags[kurrent].height; int xspacing = width/(w-4); int yspacing = height/(h-4); float percent=max(0,(zpectral.myFFT.max-zpectral.minLimit)/zpectral.limitDiff); if(trigger){ translate(width*.5, height*.5); rotateX(-8*PI/90); rotateZ(8*PI/90); rotateY(-2*(PI/180)*(++f)); scale(1+.2*percent); oklr.draw(); }else{ lnr.draw(); } txtslide++; for(int i=1; i