//int nrOfWindVectors, maxWindVectors; //WindVector[] v; Vector windVectors; int nrOfParticles,nrOfIntroParticles; Particle[] p; color white, black, blau, rot, lightGray; // colors boolean showWindVectors,showHelp; int bx=10, by=10; // helpfield position PFont ocrB; void setup() { size(400,400,P3D); background(white); noFill(); ellipseMode(CENTER_RADIUS); rectMode(CORNERS); white=color(255,255,255); black=color(0,0,0); blau=color(0,0,255); rot=color(255,0,0); lightGray=color(230,230,230); showWindVectors=true; showHelp=true; // initialize demo vectors windVectors = new Vector(); windVectors.add(new WindVector(20,height-20,40,height-40)); windVectors.add(new WindVector(30,height,30,height-10)); windVectors.add(new WindVector(40,height,40,height-20)); windVectors.add(new WindVector(50,height,50,height-30)); windVectors.add(new WindVector(60,height,60,height-40)); windVectors.add(new WindVector(width/2,height-2,width/2+100,height-2)); // initialize particles nrOfParticles=250; nrOfIntroParticles=0; p=new Particle[nrOfParticles]; // initialize text ocrB = loadFont("CourierNewPSMT-12.vlw");//OCR-B.vlw.gz"); textFont(ocrB, 12); } void draw() { noFill(); background(white); for (int i=0;i0&&showWindVectors) { for (int i=0; i