Code

// check the link down!
// vertical movement of the mouse will modify the scale
// while horizontal will mess with the width of the ellipse

void setup(){
  size(500,500);
  
  smooth();
}

///-----------------------
void draw(){
  background(width);
  colorMode(RGB, width);
  stroke(0);

  // move to the center and shrink stuff:
  translate(width/2, height/2);
  float scaler = 0.0005*mouseY;
  scale(scaler,scaler);

  pushMatrix();
  for(int y=0; y<=height; y=y+25){
    for(int x=0; x<=width; x=x+25){

      translate(x,y);
      rotate((x+millis())/1000000.0);
      fill(x,y,0);
      noStroke();
      ellipse(0,0,mouseX*5,mouseY*5);
    }
  }
  popMatrix();
}
http://www.coverpop.com/whitney/index.php?var=v16

022 -- In-Class Spirograph: The Twistie

Statement:Play with the example code.

hide statement