aaaven_See-Through-Kinect-Spring2018/06_webcam_pixels/sketch_1_5_rotate_circles/sketch_1_5_rotate_circles.pde
//Aven, See Through Kinect, Spring 2018
//http://aven.cc
//https://github.com/aaaven/STK2018/wiki/


float amp = 45;

void setup() {
  size(640, 360);
  noStroke();
}

void draw() {
  background(20);
  for (int i = 0; i < 360; i += 60) {
    for (int j = 0; j < 360; j += 5) {
      float x = width/2 + sin(radians(i-frameCount))*amp + sin(radians(j))*amp*1.5;
      float y = height/2 + cos(radians(i-frameCount))*amp + cos(radians(j))*amp*1.5;
      float size = sin(radians(j-i-frameCount*2))*5;    
      if (size < 1) size = 1;
      //fill(colors[x + y*width]);
      ellipse(x, y, size, size);
    }
  }
}