先来看一段正常的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-radius,centerY - 50); ctx.lineTo(centerX+radius,centerY - 50); ctx.lineTo(centerX+radius,centerY); // ctx.line...
[ 查看全文 ]