劣质哆啦A梦

<!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日

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值