/** * RandomLines by guru */ void setup() { size(300,300); smooth(); frameRate(25); } float a = 0; void draw() { pushMatrix(); translate(width/2,height/2); rotate(a); noStroke(); fill(0, 20 ); rect(-200,-200,400,400); strokeWeight(3); stroke(255); for( int i =0; i < 10; i++ ) { float y = random( 400 ) - 200; line( -200, y, 200, y ); } for( int i =0; i < 10; i++ ) { float x = random( 400 ) - 200; line( x, -200, x, 200 ); } popMatrix(); a+=0.01; }