xxxxxxxxxx
182
function setup() {
createCanvas(320, 310);
}
function draw() {
background(200);
translate(-30, 1);
skel();
}
function skel(){
//necl
push();
noStroke();
strokeWeight(4);
fill('black');
rect(200, 170, 12, 10);
pop();
//body
push();
stroke('white');
strokeWeight(5);
fill('black');
rect(167, 183, 80, 100);
pop();
//body
push();
stroke('white')
strokeWeight(5);
fill('black');
arc(207, 189, 79, 45, 6.3, HALF_PI+HALF_PI);
pop();
//button
push();
noStroke();
fill('white');
circle(206, 197, 15);
pop();
//shoulder
push();
stroke('white');
fill('black');
strokeWeight(5);
triangle(247, 183, 270, 183, 247, 210);
triangle(164, 183, 144, 182, 166, 210);
pop();
//arms
push();
fill('black');
stroke('white');
strokeWeight(9);
line(110, 263, 155, 202, 0, 100);
line(299, 263, 259, 202, 0, 100);
//translate(x, y);
line(110, 263, 110, 169, 0, 100);
line(299, 263, 299, 330, 0, 100);
pop();
push();
fill('black');
circle(297, 263, 20);
circle(110, 258, 20);
pop();
//hands
push();
stroke('white');
strokeWeight(5);
fill('black')
rect(95, 124, 30, 40);
rect(285, 335, 30, 40);
pop();
//fingers
push();
stroke('white');
strokeWeight(5);
line(99, 124, 99, 99, 0, 100);
line(109, 124, 109, 92, 0, 100);
line(119, 124, 119, 93, 0, 100);
line(126, 148, 140, 125, 0, 100);
line(293, 375, 293, 400, 0, 100);
line(302, 375, 302, 406, 0, 100);
line(311, 375, 311, 403, 0, 100);
line(283, 350, 269, 366, 0, 100);
pop();
//ears
push();
curveTightness(30);
stroke('white');
strokeWeight(5);
fill('black');
triangle(188, 68, 210, 37, 233, 69);
triangle(264, 119, 249, 84, 293, 78);
//triangle(x1, y1, x2, y2, x3, y3)
pop();
//face background
push();
stroke('white');
strokeWeight(4);
fill('black');
circle(209, 119, 105)
//line(x1, y1, z1, x2, y2, z2)
pop();
//face structure
push();
noFill();
stroke('white');
strokeWeight(5);
//arc(210, height/2-200, 79, 43, 3.27, 3.8);
line(190, 83, 195, 102, 0, 100);
line(196, 104, 209, 83, 0, 20);
arc(204, 126, 90, 90, 30, 4.4);
pop();
//eyes1
push();
noStroke();
ellipse(181, 111, 16, 33);
ellipse(213, 111, 16, 33);
pop();
//eyes2
push();
fill('black');
ellipse(183, 115, 5, 9);
ellipse(213, 115, 5, 9);
pop();
//legs2
push();
stroke('white')
strokeWeight(12);
line(190, 310, 190, 350, 0, 100);
line(225, 310, 225, 350, 0, 100);
pop();
//shoes
push();
stroke('black');
strokeWeight(15);
line(225, 350, 245, 350, 0, 100);
line(190, 350, 170, 350, 0, 100);
pop();
//legs
push();
stroke('white')
strokeWeight(5);
fill('black');
arc(207.4, 280, 79.4, 70, 6.3, HALF_PI+HALF_PI);
line(171, 280, 246, 280, 0, 100);
pop();
}