先来看一段正常的canvas画图语法:
复制代码代码如下:ctx.arc(centerX,centerY,radius,0,PI*2,true);ctx.shadowColor = ‘rgba(0,0,0,0.5)’;ctx.shadowBlur = “10”;ctx.fill();ctx.beginPath();ctx.shadowColor = ‘rgba(0,0,0,0)’;ctx.moveTo(centerX-radius,centerY);ctx.lineTo(centerX-radi