第七章 阴影
<canvas height
="500" width
="500" id
="canvas"></canvas
>
<script
>
var elem
=document
.getElementById("canvas");
var canvas
=elem
.getContext("2d");
canvas
.shadowColor
="#FFCE44";
canvas
.shadowOffsetX
=10;
canvas
.shadowOffsetY
=10;
canvas
.shadowBlur
=15;
canvas
.beginPath();
canvas
.arc(200,200,100,0,2*Math
.PI,true);
canvas
.closePath();
canvas
.fillStyle
="#FFE900";
canvas
.fill();
</script
>
转载请注明原文地址:https://blackberry.8miu.com/read-102.html