// Sept 2008 // http://www.abandonedart.org // http://www.zenbullets.com // // This work is licensed under a Creative Commons 3.0 License. // (Attribution - NonCommerical - ShareAlike) // http://creativecommons.org/licenses/by-nc-sa/3.0/ // // This basically means, you are free to use it as long as you: // 1. give http://www.zenbullets.com a credit // 2. don't use it for commercial gain // 3. share anything you create with it in the same way I have // // These conditions can be waived if you want to do something groovy with it // though, so feel free to email me via http://www.zenbullets.com int num = 100; // total number of particles // blackout - four cycles, black, colour1, white, colour2 String blackout = "colour2"; Particle[] pArr; void setup() { size(500,300); frameRate(30); background(0); pArr = new Particle[num]; for (int i=0;i200) { float t = random(TWO_PI); x=30*sin(t); y=30*cos(t); xx=0; yy=0; vx=0; vy=0; age=0; } } }