function bb(){ var canvas = document.getElementById("canvas"); canvas.width = 260; canvas.height = 260; var context = canvas.getContext("2d"); context.beginPath() context.lineWidth = 30 context.strokeStyle = "orange" context.arc(130, 130,100,0,0.5*Math.PI) context.stroke() context.closePath() context.beginPath() context.lineWidth = 30 context.strokeStyle = "red" context.arc(130, 130,100,0.5,1*Math.PI,false) context.stroke() context.closePath() 为什么我的第二段路径不从0.5PI起到1PI
目前暂无任何回答
- 0 回答
- 0 关注
- 1420 浏览
添加回答
举报
0/150
提交
取消