xxxxxxxxxx
/*-----
Project 1
03 07 2017
Jayne Kennedy
IMPORTANT!!!!! Use this link to add pdf exportability->
https://processing.org:8443/reference/libraries/pdf/index.html
-----*/
float transX = 0;
float transY = 0;
float r = 1;
void setup(){
size(1000,1000);
noLoop();
}
void draw(){
for(int i = 0; i < 2000; i++){
float x = 0;
float y = 0;
line(x,y,x+random(1,30),y+random(1,30));
translate(transX,transY);
transX += .5; //moves origin(0,0) by .5 outward
transY += .5;
rotate(r); //rotates image by 1
r += .00001; //increases r by very small amount
}
}