xxxxxxxxxx
int [] lines = new int [120];
void setup(){
size(500, 500);
for (int i = 0; i < lines.length; i++){
lines [i] = int (random (500));
}
for (int i = 0; i < lines.length; i++){
lines [i] = lines [i] + 1;
strokeWeight (5);
int rhue = int (random (0, 255));
int ghue = int (random (0, 255));
int bhue = int (random (0, 255));
stroke (rhue, ghue, bhue);
int x = int (random(500));
int y = int (random ( 500));
int y2 = int (y + random (450));
line (x, y, x, y2);
}
}
void draw (){
background (100);
frameRate(10);
//***Below is out b/c it draws the function multiple times! Remember, draw loops!
for (int i = 0; i < lines.length; i++){
lines [i] = lines [i];
strokeWeight (5);
int rhue = int (random (0, 255));
int ghue = int (random (0, 255));
int bhue = int (random (0, 255));
stroke (rhue, ghue, bhue);
int y = int (random (500));
int y2 = int (y + random (500));
line (lines[i], y, lines [i], y2);
}
}