/* ---------------------------------------------- Computing Kaizen Studio Advanced Studio VI Spring 2010 Columbia University GSAPP Grow/Die Bodies Code by Maider Llaguno http://www.arch.columbia.edu/ http://proxyarch.com/kaizen This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License -----------------------------------------------*/ class Node{ PVector pos; int count; float rad; float growspeed; boolean nodeActive; boolean belongBand; boolean newnode; int age; Node(){ count = 0; rad = radMin; nodeActive = true; belongBand = false; pos = new PVector( random(0,width), random(0,height),0); growspeed = random(3 , growspeedlimit); newnode = false; age = 0; } void grow(){ if(count == 0 && rad <= radMax) { rad += growspeed *0.3; } if(count == 0 && rad > radMax) { change(); } } void change(){ if (belongBand == true){ for(int i=0; i radMax-1) ){ if(!killed){ killed = true; change(); } } for(int i=0; i 100){ this.newnode = false; this.age = 0; } if (this.newnode == false) stroke(0,0,40,60); ellipse(pos.x, pos.y, rad*2,rad*2); popMatrix(); //plot blobs fill(100); noStroke(); //ellipse(mouseX, mouseY, 40,40); count = 0; for(int i=0; i