我想在canvas
我使用下面的代码中绘制这种螺旋图案需要你的帮助以进一步绘制圆圈。
// get the canvas element using the DOM
var canvas = document.getElementById('circlecanvas');
// Make sure we don't execute when canvas isn't supported
if (canvas.getContext){
// use getContext to use the canvas for drawing
var ctx = canvas.getContext('2d');
// Draw shapes
ctx.beginPath();
//context.arc(x, y, radius, startAngle, endAngle, counterClockwise);
for (i=0;i<9;i++){
ctx.arc(50, 50, 50, i, Math.PI * 2, false);
ctx.fill();
}
}