xxxxxxxxxx
273
// Hyacinth → corpse's head, cicada's toso, leslie's legs
//reflection: https://docs.google.com/document/d/1YvOIY32XF0lpWcxXJZWH5UFCKj7pG9FdmWfm6YpMAgc/edit?usp=sharing
let corpse;
let leslie;
let cicada;
function preload(){
leslie = loadImage('leslie-01.png');
cicada = loadImage('https://media.discordapp.net/attachments/903411901231415296/904797381105696828/cicada.png?width=904&height=1170');
corpse = loadImage('https://media.discordapp.net/attachments/903411901231415296/903413479409614858/14FD70F3-FCC6-4F0B-89CE-746FB3E8A103.jpg?width=878&height=1171');
}
function setup() {
createCanvas(400, 600);
angleMode(DEGREES);
}
function draw() {
background(255);
// image(cicada, -25,0, 450,600);
// image(corpse, -5,-55, 490,650);
head();
// stroke(0);
// line(0,200,400,200);
// line(0,400,400,400);
// push();
// text(mouseX+', '+mouseY,mouseX+10,mouseY+10);
// pop();
}
function head(){
push();
//neckbone
stroke(200);
strokeWeight(4);
line(188,156,188,163);
line(193,158,193,163);
pop();
push();
//neck
stroke(0);
fill(255);
beginShape();
vertex(186,177);
vertex(186,194);
vertex(157,200);
vertex(246,200);
vertex(214,194);
vertex(210,176);
endShape(CLOSE);
//head
beginShape();
vertex(205,166);
vertex(179,151);
bezierVertex(167,143,164,133,169,118);
bezierVertex(175,105,185,104,191,105);
bezierVertex(209,108,214,114,219,120);
bezierVertex(220,130,217,132,210,137);
vertex(212,144);
vertex(215,146);
vertex(208,150);
vertex(206,152);
bezierVertex(209,155,210,160,205,166);
endShape(CLOSE);
//ear
beginShape();
vertex(188,127);
bezierVertex(180,117,174,125,187,135);
vertex(187,139);
endShape();
//eye
beginShape();
vertex(199,130);
vertex(202,131);
vertex(203,132);
vertex(207,134);
endShape();
pop();
torso();
}
function torso(){
noStroke();
//L leg
push();
rotate(58);
fill('#392720');
ellipse(298,17,70,9);
pop();
push();
rotate(69);
fill('#392720');
ellipse(265,-15,6,35);
pop();
//R leg
push();
rotate(122);
fill('#392720');
ellipse(87,-356,70,9);
pop();
push();
rotate(111);
fill('#392720');
ellipse(121,-358,6,35);
pop();
//L boot
push();
beginShape();
noStroke();
fill(0);
vertex(106,230);
vertex(106,251);
vertex(73,267);
vertex(71,264);
vertex(76,257);
vertex(66,248);
vertex(67,235);
vertex(72,242);
vertex(79,244);
endShape(CLOSE);
//R boot
beginShape();
vertex(294,230);
vertex(294,251);
vertex(327,267);
vertex(329,264);
vertex(324,257);
vertex(334,248);
vertex(333,235);
vertex(328,242);
vertex(321,244);
endShape(CLOSE);
pop();
//body
push();
fill('#543a30');
ellipse(200,227,123,50);
beginShape();
vertex(139,230);
vertex(182,400);
vertex(218,400);
vertex(261,230);
endShape(CLOSE);
//neck part
beginShape();
vertex(160,200);
vertex(240,200);
vertex(225,220);
vertex(175,220);
endShape(CLOSE);
pop();
//back patterns
push();
fill('#392720');
triangle(180,258,220,258,200,300);
noFill();
stroke('#392720');
strokeWeight(2);
ellipse(171,225,10,11);
ellipse(225,225,10,11);
ellipse(200,235,10,11);
line(178,330,222,330);
line(178,385,222,385);
pop();
push();
//L wing
beginShape();
fill(212, 150, 43,150);
vertex(139,230);
vertex(113,400);
vertex(178,400);
vertex(178,385);
endShape(CLOSE);
//R wing
beginShape();
vertex(261,230);
vertex(287,400);
vertex(222,400);
vertex(222,385);
endShape(CLOSE);
pop();
push();
//L orange
beginShape();
fill('#b27034');
vertex(139,230);
vertex(178,385);
vertex(180,293);
endShape(CLOSE);
//R orange
beginShape();
vertex(261,230);
vertex(222,385);
vertex(220,293);
endShape(CLOSE);
pop();
legs();
}
function legs(){
push();
fill('#fec878');
noStroke();
//L leg
beginShape();
vertex(130,400);
vertex(124,420);
vertex(111,502);
vertex(131,506);
vertex(153,458);
vertex(151,435);
vertex(170,400);
endShape(CLOSE);
//R leg
beginShape();
vertex(197,400);
vertex(215,452);
vertex(243,512);
vertex(259,510);
vertex(253,462);
vertex(240,433);
vertex(239,400);
endShape(CLOSE);
pop();
push();
fill('#e9d9ce');
noStroke();
//R sock
beginShape();
vertex(243,512);
vertex(247,533);
vertex(225,578);
vertex(250,584);
vertex(275,541);
vertex(269,533);
vertex(259,510);
endShape(CLOSE);
//L sock
beginShape();
vertex(111,502);
vertex(109,532);
vertex(78,572);
vertex(111,583);
vertex(122,557);
vertex(130,543);
vertex(128,528);
vertex(131,506);
endShape(CLOSE);
pop();
}