xxxxxxxxxx
/*-----
Project 1
02 23 2017
Jayne Kennedy
-----*/
void setup() {
size(2000, 2000);
//noLoop();
}
float r = 0;
float theta = 0;
float offset = .5;
float rando1 = random(500,1500);
float rando2 = random(500,1500);
void draw() {
for (int t = 0; t < 1000; t++) {
translate(rando1,rando2 ); //moves origin to a random point between 500 & 1500
float x = 0; //(r + offset) * cos(theta);
float y = 0; //(r + offset) * sin(theta);
rotate(r);
line(x, y, x+random(0, 20), y+random(0, 20));
theta += .01;
offset += random(-2,2);
r = r+.09;
}
}