xxxxxxxxxx
/*-----------------------------
Michael's Robot
01/26/2017
Michael Saari
saari.13@osu.edu
https://www.openprocessing.org/sketch/402028
-----------------------------*/
void setup(){
size(400,400);
background(0);
frameRate(10);
}
float y1 = 100;
float y2 = 100;
void draw(){
strokeWeight(random(5));
stroke(0,random(255),0);
strokeWeight(random(5));
line(200,random(200),400,random(200));
stroke(0,0,random(255));
strokeWeight(random(5));
line(random(200),200,random(200),400);
stroke(random(255),random(255),random(255));
strokeWeight(random(5));
line(random(200,400),random(200,400),random(200,400),random(200,400));
stroke(random(255),0,0);
line(0,y1,200,y2);
y1=y1+random(20)-10;
y2=y1+random(20)-10;
if(y1>200){
y1=200;
}
if(y1<0){
y1=0;
}
if(y2>200){
y1=200;
}
if(y2<0){
y1=0;
}
}