/** * Happy Holidays!
* Joyeuses Fêtes!
* Elie Zananiri - http://www.silentlycrashing.net */ //---------------------------- // variables Ball fuzzBall; Ball lineBall; Ball blobBall; LightPath lightPath; //---------------------------- void setup() { // set up the applet size(600, 400); smooth(); frameRate(30); noCursor(); fuzzBall = new FuzzBall(); fuzzBall.move(width/4, height/2); lineBall = new LineBall(); lineBall.move(width*3/4, height/2); blobBall = new BlobBall(); lightPath = new LightPath(); } //---------------------------- void draw() { background(255); // draw the light path behind everything else lightPath.draw(); // draw the fuzz ball on the left fuzzBall.draw(); // draw the line ball on the right lineBall.draw(); // draw the blob ball at the mouse position blobBall.move(mouseX, mouseY); blobBall.draw(); } //---------------------------- void mousePressed() { lightPath.clear(); } //---------------------------- void mouseMoved() { lightPath.update(mouseX, mouseY); }