/** hight voltage by guru */ void setup() { size(300, 300); smooth(); frameRate(30); background(0); } void draw() { fill(0,100); noStroke(); rect(0,0,width,height); fill(255); stroke(200); strokeWeight(2); line( 120, 300, 90, 150 ); line( 180, 300, 210, 150 ); ellipse( 90, 150, 20, 20); ellipse( 210, 150, 20, 20); float[] ofs = new float[20]; for ( int i=0; i<20; i++) { float f = 20 - sq(i-10)/5; ofs[i] = 2*f * noise(float(i)/7+frameCount) - f; } strokeWeight(3); stroke(0, 0, 255); for ( int i=0; i<19;i++) { line( 100 + i * 5, 150 + ofs[i], 100 + (i+1)*5, 150 + ofs[i+1]); } line( 195, 150+ofs[19], 200, 150); strokeWeight(1); stroke(255); for ( int i=0; i<19;i++) { line( 100 + i * 5, 150 + ofs[i], 100 + (i+1)*5, 150 + ofs[i+1]); } line( 195, 150+ofs[19], 200, 150); }