> show canvas only <


/* built with Studio Sketchpad: 
 *   http://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   http://sketchpad.cc/sp/pad/view/ro.7IH2NQLEfjI/rev.683
 * 
 * authors: 
 *   
 *   
 *   
 *   
 *   
 *   
 *   
 *   
 *   Ari Bader-Natal
 *   
 *   
 *   
 *   
 *   
 *   
 *   
 *   Johan
 *   
 *   
 *   
 *   

 * license (unless otherwise specified): 
 *   creative commons attribution-share alike 3.0 license.
 *   http://creativecommons.org/licenses/by-sa/3.0/ 
 */ 



size(720, 200);
smooth();
background(0);
strokeWeight(20);
float iter;

void setup() {
iter = 0.0;
}

void draw()
{   
    background(254);
    
    iter += 0.05;
    iterSinDelta = 25 * sin(iter);
    
    for(int i = 0; i < width; i += 3) {
      j = i / width;  
      
      float r = random(20);
      float x = random(1, 5);
      x += j * 20;
      stroke(r, 90);
  
      period = 2 * j;
      
      ellipse(
          i, 
          height/2 + j * random(20) + iterSinDelta + 50 * j * sin(TWO_PI + iterSinDelta / (width / (period * i)) ), 
          x, 
          x);
    }

}