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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
| var cxt = document.getElementById('myCanvas').getContext('2d'); cxt.beginPath(); cxt.lineWidth = 1; cxt.strokeStyle = '#000'; cxt.arc(200,200,140,Math.PI*0.3,Math.PI*0.7,1); cxt.fillStyle = '#0bb0da'; cxt.fill(); cxt.stroke(); cxt.beginPath(); cxt.moveTo(150,320); cxt.quadraticCurveTo(20,205,150,140); cxt.lineTo(260,140); cxt.moveTo(260,140); cxt.quadraticCurveTo(380,205,260,320); cxt.lineTo(150,320); cxt.stroke(); cxt.fillStyle = '#fff'; cxt.closePath(); cxt.fill(); cxt.beginPath(); cxt.moveTo(175,100); cxt.bezierCurveTo(140,100,140,180,175,180); cxt.bezierCurveTo(210,180,210,100,175,100); cxt.stroke(); cxt.fillStyle = '#fff'; cxt.fill(); cxt.beginPath(); cxt.moveTo(230,100); cxt.bezierCurveTo(195,100,195,180,230,180); cxt.bezierCurveTo(265,180,265,100,230,100); cxt.stroke(); cxt.fillStyle = '#fff'; cxt.fill(); cxt.beginPath(); cxt.arc(180,140,10,0,Math.PI*2); cxt.fillStyle = '#000'; cxt.fill(); cxt.beginPath(); cxt.arc(225,140,10,0,Math.PI*2); cxt.fillStyle = '#000'; cxt.fill(); cxt.beginPath(); cxt.arc(202,183,15,0,Math.PI*2); cxt.fillStyle = '#d05823'; cxt.fill(); cxt.beginPath(); cxt.moveTo(202,197); cxt.lineTo(202,295); cxt.stroke(); cxt.beginPath(); cxt.moveTo(180,210); cxt.lineTo(125,200); cxt.stroke(); cxt.beginPath(); cxt.moveTo(180,220); cxt.lineTo(125,220); cxt.stroke(); cxt.beginPath(); cxt.moveTo(180,230); cxt.lineTo(125,240); cxt.stroke(); cxt.beginPath(); cxt.moveTo(224,210); cxt.lineTo(280,200); cxt.stroke(); cxt.beginPath(); cxt.moveTo(224,220); cxt.lineTo(280,220); cxt.stroke(); cxt.beginPath(); cxt.moveTo(224,230); cxt.lineTo(280,240); cxt.stroke(); cxt.beginPath(); cxt.moveTo(132,270); cxt.quadraticCurveTo(202,320,272,270); cxt.stroke(); cxt.beginPath(); cxt.lineWidth='20'; cxt.strokeStyle = '#d05823'; cxt.lineCap ='round'; cxt.moveTo(110,320); cxt.lineTo(285,320); cxt.stroke(); cxt.beginPath(); cxt.lineWidth='1'; cxt.fillStyle = '#0bb0da'; cxt.strokeStyle = '#000'; cxt.moveTo(122,330); cxt.lineTo(80,370); cxt.lineTo(107,395); cxt.lineTo(122,380); cxt.lineTo(122,450); cxt.lineTo(272,450); cxt.lineTo(272,380); cxt.lineTo(287,395); cxt.lineTo(314,370); cxt.lineTo(277,330); cxt.closePath(); cxt.fill(); cxt.stroke(); cxt.beginPath(); cxt.arc(88,387,20,0,Math.PI*2); cxt.fillStyle = '#fff'; cxt.fill(); cxt.stroke(); cxt.beginPath(); cxt.arc(303,387,20,0,Math.PI*2); cxt.fillStyle = '#fff'; cxt.fill(); cxt.stroke(); cxt.beginPath(); cxt.fillStyle = '#fff'; cxt.moveTo(147,330) cxt.bezierCurveTo(97,460,307,460,252,330); cxt.fill(); cxt.stroke(); cxt.beginPath(); cxt.moveTo(165,380) cxt.bezierCurveTo(165,410,240,410,240,380); cxt.lineTo(165,380); cxt.stroke(); cxt.beginPath(); cxt.strokeStyle = '#000'; cxt.fillStyle = '#fff'; cxt.lineCap ='round'; cxt.moveTo(110,450); cxt.lineTo(190,450); cxt.quadraticCurveTo(200,455,190,470); cxt.lineTo(110,470); cxt.quadraticCurveTo(95,455,110,450); cxt.stroke(); cxt.beginPath(); cxt.strokeStyle = '#000'; cxt.fillStyle = '#fff'; cxt.lineCap ='round'; cxt.moveTo(205,450); cxt.lineTo(285,450); cxt.quadraticCurveTo(295,455,285,470); cxt.lineTo(205,470); cxt.quadraticCurveTo(200,455,205,450); cxt.stroke(); cxt.beginPath(); cxt.fillStyle = '#fff'; cxt.arc(198,450,10,0,Math.PI,1); cxt.fill(); cxt.stroke(); cxt.beginPath(); cxt.arc(202,330,15,0,Math.PI*2); cxt.fillStyle = 'yellow' cxt.fill(); cxt.beginPath(); cxt.arc(202,330,4,0,Math.PI*2); cxt.fillStyle = '#000'; cxt.fill(); cxt.beginPath(); cxt.strokeStyle = '#000'; cxt.lineWidth = '1' cxt.moveTo(187,330); cxt.lineTo(217,330); cxt.moveTo(202,330); cxt.lineTo(202,345); cxt.stroke();
|