// These are like line droplets or something // Maybe make them arc segments(?) rotating in the bg like the starts moving around // or shoot off at an angle lik class Lines { float lifespan; float x; float y; float z; float speed; float endline; float startline; int grey; float angle; Lines() { x = 0; y = 0; z = 0; lifespan = random(0,height); speed = random(2,8); grey = (int)random(200,255); angle = random(0,TWO_PI); } void update() { if(endline < lifespan){ endline += speed; } else { startline += speed; } // Reset the speeds when the lifespan of the line is done if(startline > endline){ lifespan = random(100,1000); speed = random(0,4); startline = 0; endline = 0; } } void display() { rotateX(angle); rotateZ(angle); stroke(grey); line(x,y+startline,z,x,y+endline,z); } }