/** * a tunnle effect by Guru */ void setup() { size(300,300); frameRate(25); } void draw() { noStroke(); copy(10, 10, width-19, height-19,0,0,width, height ); fill(0,10); rect(0,0,width, height ); pushMatrix(); translate( width/2, height/2 ); stroke(255); strokeWeight(2); for( int i = 0; i < 360; i++ ) { stroke( 255, random(255), 0); point( cos(radians(i)) * 7, sin(radians(i)) * 7 ); point( cos(radians(i)) * 8, sin(radians(i)) * 8 ); } popMatrix(); }