//Vincent Castillo
//Processing Colors and Variables tutorial

float x;
float y;

void setup() {
  size( 800, 600 );
  background( 0 );
  
}

void draw () {
  noStroke();
  x = x + 30;
  y = y - 15;
    
  if( x > width) {
      x = 0;
    }
  if( y < 0) {
      y = 600;
    }
    
    ////Ellipse horizontal, right
    fill( (int)random(255), random(255), 255);  // (int) is a "Cast", takes int from a float, type promotion
      ellipse( x, 50, 120, 120);
      ellipse( x, 250, 120, 120);
      ellipse( x, 450, 120, 120);
      ellipse( x, 650, 120, 120);
  
    ////Ellipse vertical, up
    fill( 255, random( 255 ), random( 255  ));
      ellipse( 100, y, 110, 110);
      ellipse( 280, y, 120, 120);
      ellipse( 490, y, 130, 130);
      ellipse( 700, y, 140, 140);
}

