> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://codigodelaimagen.sketchpad.cc/sp/pad/view/ro.HCIFduePSc1/rev.2
 * 
 * authors: 
 *   juanma

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




float a = 960;
float b = -320;
float x = 1;
void setup() 
{
  size(640, 640);
  noStroke();
  frameRate(40);
}

void draw() 
{
  background(0);
  a = a - 2;
  b= b + 2;
  if (a < -320) { 
    a = 960;
    x = random(1,30);
  }
    if (b > 960) { 
    b = -320;
  }

  strokeWeight(x);


  //circunferencia que sube
    fill (x,225,x,20);
  ellipse(320, a, width, height);
  ellipse(320, a, width-80, height-80);
  ellipse(320, a, width-160, height-160);
  ellipse(320, a, width-240, height-240);
  ellipse(320, a, width-320, height-320);
  ellipse(320, a, width-400, height-400);
  ellipse(320, a, width-480, height-480);
  ellipse(320, a, width-560, height-560);


  //circunferencia que baja
    fill (225,x,x,20);
    
  ellipse(320, b, width, height);
  ellipse(320, b, width-80, height-80);
  ellipse(320, b, width-160, height-160);
  ellipse(320, b, width-240, height-240);
  ellipse(320, b, width-320, height-320);
  ellipse(320, b, width-400, height-400);
  ellipse(320, b, width-480, height-480);
  ellipse(320, b, width-560, height-560);
 
    //circunferencia izquierda derecha
     fill (x,x,225,20);
     
  ellipse( a, 320, width, height);
  ellipse( a, 320,  width-80, height-80);
  ellipse( a, 320, width-160, height-160);
  ellipse( a, 320, width-240, height-240);
  ellipse( a, 320, width-320, height-320);
  ellipse( a, 320, width-400, height-400);
  ellipse( a, 320, width-480, height-480);
  ellipse( a, 320, width-560, height-560);

  //circunferencia derecha izquierda
  fill (x,225,225,20);
  
  ellipse( b, 320, width, height);
  ellipse( b, 320,  width-80, height-80);
  ellipse( b, 320, width-160, height-160);
  ellipse( b, 320, width-240, height-240);
  ellipse( b, 320, width-320, height-320);
  ellipse( b, 320, width-400, height-400);
  ellipse( b, 320, width-480, height-480);
  ellipse( b, 320, width-560, height-560);
}