xxxxxxxxxx
154
let img
let img1
let img2
function setup() {
createCanvas(425, 600);
angleMode(DEGREES)
img = loadImage('Untitled1.png')
img1 = loadImage('bird.png')
img2 = loadImage('bellyfur.png')
}
function draw() {
background(255);
//thighs
arc(130, 360, 77, 40, 180, 300)
arc(270, 360, 77, 40, 235, 360)
arc(130, 360, 80, 250, 95, 180)
arc(270, 360, 80, 250, 0, 85);
//feet
arc(130, 490, 65, 40, 180, 240)
arc(270, 490, 65, 40, 300, 360)
line(100, 490, 135, 490)
line(300, 490, 265, 490);
//body & bird
image(img, 90, 10)
image(img1, 160, 20);
//collar
ellipse(200, 200, 60, 30);
//hair
drawTri(160)
drawTri(180)
drawTri(200)
drawTri(220);
//ears
circle(110, 150, 30)
circle(290, 150, 30)
circle(110, 150, 10)
circle(290, 150, 10);
//face
ellipse(200, 150, 180, 120);
//eyes
circle(180, 140, 20)
circle(220, 140, 20)
push()
fill(0)
circle(180, 140, 5)
circle(220, 140, 5)
pop();
//mouth
arc(200, 170, 20, 20, 0, 180);
//bodyline
arc(200, 360, 60, 20, 20, 160)
arc(200, 470, 80, 20, 12, 168);
//legs
push()
drawKnee(150)
drawKnee(250)
drawLeg(150)
drawLeg(250)
pop();
//toes
drawToe(120)
drawToe(220);
//furs
image(img2, 185, 380)
furMark(0, 0)
furMark(10, 30)
furMark(0, 50)
furMark(15, 65)
furMark(110, 0)
furMark(120, 30)
furMark(110, 50)
furMark(125, 65)
furMark(-40, -20)
furMark(-35, 10)
furMark(-30, 40)
furMark(150, -20)
furMark(160, 10)
furMark(150, 40)
}
function furMark(x, y) {
line(145 + x, 390 + y, 140 + x, 400 + y)
line(135 + x, 390 + y, 140 + x, 400 + y)
}
function toeLine(x) {
line(x, 510, x, 500)
}
function drawToe(x) {
arc(x, 510, 20, 40, 180, 360)
arc(x + 20, 510, 20, 40, 180, 360)
arc(x + 40, 510, 20, 40, 180, 360)
arc(x + 60, 510, 20, 40, 180, 360)
line(x - 10, 510, x + 70, 510)
toeLine(x)
toeLine(x + 20)
toeLine(x + 40)
toeLine(x + 60)
}
function drawTri(x) {
triangle(x, 100, x + 10, 80, x + 20, 100)
}
function drawLeg(x) {
noFill()
line(x - 35, 380, x - 15, 500)
line(x + 35, 380, x + 15, 500)
}
function drawKnee(x) {
noFill()
arc(x, 380, 70, 50, 180, 360)
}