Heres my code which makes an emoticon :)
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);
background(255);
}
void draw(){
fill(255,255,51);
ellipse(B,B,A,A);
fill(255,128,128);
arc(E,C,D,D,0,PI+QUARTER_PI, CHORD);
fill(255);
ellipse(E,E,B,B);
fill(255);
ellipse(C,E,B,B);
fill(0);
ellipse(E,move2,inner,inner);
fill(0);
ellipse(C,move,inner,inner);
line(E,C,move4,move3);
}
No comments:
Post a Comment