38 lines
729 B
Text
38 lines
729 B
Text
void setup(){
|
|
size(361, 690);
|
|
background(0xff);
|
|
//face
|
|
translate(90,30);
|
|
//rinkaku
|
|
rect(0,0,180,180,60);
|
|
triangle(0,0,90,-30,180,0);
|
|
stroke(0xff);
|
|
rect(0,0,180,60);
|
|
stroke(0);
|
|
//eyes
|
|
fill(0);
|
|
rect(60-2,90,4,60,2);
|
|
rect(120-2,90,4,60,2);
|
|
fill(0xff);
|
|
//hair
|
|
triangle(0,20,90,20,45,60);
|
|
triangle(90,20,180,20,135,60);
|
|
stroke(0xff);
|
|
rect(0,-1,180,22);
|
|
stroke(0);
|
|
translate(90,30);
|
|
triangle(-100,0,-180,180,-100,360);
|
|
triangle(100,0,180,180,100,360);
|
|
fill(0);
|
|
rect(-90-2-5,-45,4,90);
|
|
rect(90+5-2,-45,4,90);
|
|
fill(0xff);
|
|
//body
|
|
fill(0);
|
|
noStroke();
|
|
translate(0,150);
|
|
triangle(0,0,-120,300,120,300);
|
|
stroke(0);
|
|
line(-30,300,-30,300+180);
|
|
line(30,300,30,300+180);
|
|
}
|