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(0);
float normX = norm(mouseX, width, 50);
float myHeight = normX * height;
fill(255,255,0);
ellipse(B, B, A, A);
fill(255, 128, 128);
arc(E, C, normX *D, normX *D, 0, PI+QUARTER_PI, CHORD);
line(E, C, move4, move3);
//if(mouseX, width/2){
//fill(0);
//}else{
//fill(255);
fill(255);
ellipse(E, E, normX *B, normX *B);
fill(255);
ellipse(C, E, normX *B, normX *B);
fill(0);
ellipse(E, move2, normX *inner, normX *inner);
ellipse(C, move, normX *inner, normX *inner);
}
No comments:
Post a Comment