<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
canvas{
border: 2px solid slategray;
}
</style>
</head>
<body>
<canvas id="哆啦A梦" height="900" width="1100"></canvas>
<script type="text/javascript">
var context = document.getElementById('哆啦A梦').getContext('2d');
context.beginPath();
context.arc(500,300,200,0,2*Math.PI,true);
context.closePath();
context.fillStyle = '#87CEFA';
context.fill();
context.beginPath();
context.arc(500,300,200,0,2*Math.PI,true);
context.closePath();
context.strokeStyle = 'black';
context.stroke();
context.beginPath();
context.arc(500,600,200,0,2*Math.PI,true);
context.closePath();
context.fillStyle = '#87CEFA';
context.fill();
context.beginPath();
context.strokeStyle="#fff";
context.lineWidth=16;
context.arc(475,430,30,Math.PI/6,5*Math.PI/6,false);
context.stroke();
context.beginPath();
context.strokeStyle="#fff";
context.lineWidth=16;
context.arc(525,430,30,Math.PI/6,5*Math.PI/6,false);
context.stroke();
context.beginPath();
context.lineWidth=8;
context.moveTo(500,325);
context.lineTo(500,450);
context.stroke();
context.moveTo(375,300);
context.lineTo(450,325);
context.stroke();
context.moveTo(350,325);
context.lineTo(450,350);
context.stroke();
context.moveTo(375,365);
context.lineTo(450,375);
context.stroke();
context.moveTo(625,300);
context.lineTo(550,325);
context.stroke();
context.moveTo(650,325);
context.lineTo(550,350);
context.stroke();
context.moveTo(625,365);
context.lineTo(550,375);
context.stroke();
context.beginPath();
context.arc(425,225,15,0,2*Math.PI,true);
context.closePath();
context.fillStyle = 'black';
context.fill();
context.beginPath();
context.arc(575,225,15,0,2*Math.PI,true);
context.closePath();
context.fillStyle = 'black';
context.fill();
context.beginPath();
context.arc(500,350,25,0,2*Math.PI,true);
context.closePath();
context.fillStyle = 'red';
context.fill();
context.beginPath();
context.strokeStyle="#fff";
context.lineWidth=5;
context.arc(425,240,30,Math.PI/6,15*Math.PI/6,false);
context.stroke();
context.beginPath();
context.strokeStyle="#fff";
context.lineWidth=5;
context.arc(575,240,30,Math.PI/6,15*Math.PI/6,false);
context.stroke();
context.beginPath();
context.strokeStyle = 'red'
context.lineWidth=8;
context.moveTo(370,450);
context.lineTo(370,478);
context.stroke();
context.beginPath();
context.strokeStyle = 'red'
context.lineWidth=8;
context.moveTo(630,450);
context.lineTo(630,478);
context.stroke();
context.beginPath();
context.strokeStyle="red";
context.lineWidth=8;
context.arc(500,400,150,Math.PI/6,5*Math.PI/6,false);
context.stroke();
context.closePath();
context.beginPath();
context.arc(500,550,35,0,2*Math.PI,true);
context.closePath();
context.fillStyle = '#FFD700';
context.fill();
context.beginPath();
context.strokeStyle="black";
context.lineWidth=5;
context.arc(500,650,100,Math.PI/6,5*Math.PI/6,false);
context.fillStyle = '#fff';
context.fill();
context.stroke();
</script>
</body>
</html>
袁同学——2019年5月21日