// Sep 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 //================================= global vars int num = 20; Particle[] pArr; int gap; //================================= init void setup() { size(500,300); frameRate(60); background(0); //clearBackground(); smooth(); gap = height / (num+1); pArr = new Particle[num]; for (int i=0;i 10) { y2 = int ((noise(noiseoff) * prox) - (prox * prox * 0.065) ) + (gap * id) + gap + gap; } else { y2 = (gap * id) + gap + gap; } strokeWeight(2); stroke(rd, gr, bl, alph); line(x1, y1, x2, y2); // reset for next update x1 = x2 + (vx/2); y1 = y2; if ((x1 >= (width-10)) || (x1 <= 10)) { init(); } } }