xxxxxxxxxx
/*------
Crazy Lines (Lab)
Animation with random lines appearing
from left border to right border
(with my own colorful spin added).
created 01 26 2017
Jayne Kennedy
jaynie.kennedy@gmail.com
------*/
void setup (){
background(0);
size(1000,1000);
}
void draw (){
stroke (random(255), random(110), random(110));
strokeWeight(25);
float distance = random(width/2);
float Y1 = random(-100,100);
float Y2 = random(-100,100);
line (0,distance+Y1,width/2,distance+Y2);
println("Y1:"+Y1+"/Y2:"+Y2);
stroke(random(110),random(255),random(110));
line(width/2,distance+Y1,1000,distance+Y2);
stroke(random(110),random(110),random(255));
line(0,random(500,1000),width/2,random(500,1000));
stroke(random(255),random(255),random(255));
line(width/2,random(500,1000),1000,random(500,1000));
}