Labels

Saturday, 20 July 2013

My Face to animate to music

int A = 450;
int B = 250;
int C = 350;
int D = 80;
int E = 150;

int inner = 40;

int move = 120;

int move2 = 180;

int move3 = 360;

int move4 = 140;

void setup() {

  size(500, 500);

}

void draw() {

  background(255);
  fill(255,255,0);
  ellipse(E, move2, inner, inner);
  ellipse(B, B, 450,450);


  fill(255, 128, 128);
  arc(E, C, D, D, 0, PI+QUARTER_PI, CHORD);
  line(E, C, move4, move3);


  fill(255);
  ellipse(E, E, B, B);

  fill(255);
  ellipse(C, E, B, B);

  fill(0);
  ellipse(E, move2, inner, inner);
  ellipse(C, move, inner, inner);

}



No comments:

Post a Comment