1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
| background(209, 255, 255); var drawCuty = function() { var x = 148; var y = 170*x/140; var w = 130*x/140; var h = 50*x/140; var a = x*30/140;
strokeWeight(6*x/140); stroke(59, 12, 12); arc(x+1, y+h/2, h, h, -272, -90); arc(x+w, y+h/2, h, h, -121, 90); noStroke(); rect(x, y, w, h); stroke(59, 12, 12); line(x, y+h, x+w, y+h);
noStroke(); quad(x+a, y-h*10/13, x+w-a, y-h*10/13, x+w, y, x, y); stroke(59, 12, 12); arc(x*54/52+a/2, y-h*5/13, h, h, -228, -85); arc(x*51/53+w-a/2, y-h*5/13, h, h, -86, 47);
noStroke(); fill(255, 255, 255); quad(x+a, y-h*6/4, x+w-a, y-h*6/4, x+w-a/2, y-h*5/13, x+a/2, y-h*5/13); stroke(59, 12, 12); arc(x+a, y-h*(6/4-7/20), h/2, h*14/20, 124, 270); arc(x+w-a, y-h*(6/4-7/20), h/2, h*14/20, -75, 47); fill(255, 255, 255); beginShape(); curveVertex(-127*x/140, 197*y/170); curveVertex(x+a, y-h*6/4); curveVertex(x+(w-a), y-h*6/4); curveVertex(616*x/140, 500*y/170); endShape(); fill(59, 12, 12); ellipse(x+a, y*175/170, x/14, x/14); ellipse(x+w-a,175*y/170, x/14, x/14);
noFill(); strokeWeight(4*x/140); arc(x+w/2, 175*y/170, x/10, x/10, 10, 180);
strokeWeight(x/14); stroke(250, 187, 223); line(x+18*x/140, y+h/2, x+24*x/140, y+h/2); line(x+w-18*x/140, y+h/2, x+w-24*x/140, y+h/2); }; drawCuty();
|