import processing.candy.*; import processing.xml.*; import processing.pdf.*; import traer.physics.*; import java.util.Vector; Vector tendrils; ParticleSystem physics; Particle mouse; Spring s; int greyer; boolean drawing; boolean nothingDrawn; boolean saveOneFrame = false; boolean announcement; boolean recording; int number,flipper,outcount,rec; float degree, MouseX, MouseY; void setup() { size(841,1190); frameRate(20); loadSVG("i/lacinsky.list"); colorMode(RGB,1.0f,1.0f,1.0f,1.0f); physics = new ParticleSystem( 0.0f, 0.05f ); mouse = physics.makeParticle(); mouse.makeFixed(); tendrils = new Vector(); initiate(); rec = int(random(500,1000)); } void draw() { background(255); if ( frameCount == rec) { saveOneFrame = true; } if ( frameCount/5.0 == int(frameCount/5.0)) { headlessMouse(); mouse.moveTo( MouseX, MouseY, 0 ); } if ( frameCount/5.0 == int(frameCount/5.0)) { headlessMouse(); mouse.moveTo( MouseX, MouseY, 0 ); } //mouse.moveTo( mouseX, mouseY, 0 ); if(saveOneFrame == true) { beginRecord(PDF, "plakatlac2009_A3.pdf"); recording = true; } pushMatrix(); translate(-200,-200); scale(2.5); drawV3rtil(); popMatrix(); pushMatrix(); translate(500,920); pushMatrix(); drawLogo(0, // SVGID -250, // POS X 70, // POS Y 330, // SCALE 1.66); // ROTATE popMatrix(); popMatrix(); physics.advanceTime( 1.0f ); mouse.setMass( 100 ); // Midi hier physics.setGravity ( 0.1f ); // Midi hier announcement = false; // damits nur einmal kommt /////////////////////// if(recording == true) { endRecord(); exit(); //recording = false; //saveOneFrame = false; //announcement = false; } /////////////////////// }