Monday, October 11, 2010

Animated Pattern


void setup(){
size(600,600);
smooth ();
background(0);
}

void draw(){
fill(0,0,0,5);
rect(0,0,width, height);
for (int y=0; y<= height; y+=40) {
for (int x=0; x<=width; x+=40) {
stroke(random(255), random(255), random(255),(20));
line(x,y, mouseX,mouseY);
}
}
}