Move canvas

Untitled Sketch

Saved June 14, 2010
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);
    }
 
}
 
 

Unless specified otherwise in the source code, this work, created by
is licensed under a Creative Commons Attribution-Share Alike 3.0 License.

Creative Commons License

Authors

Modify this version


Modded 2 times

Export this version

Source code
HTML (w/canvas)