問(wèn)題,請(qǐng)看圖。圖1,fill繪制扇形,用closePath()收口,如何去除邊線(xiàn)顏色。//用fill繪制扇形
c.beginPath();
c.fillStyle?=?"coral";
c.moveTo(200,?300);
c.arc(200,?300,?200,?Math.PI?*?7?/?6,?Math.PI?*?11?/?6);
c.closePath();
c.fill();
c.beginPath();
c.fillStyle?=?"blanchedalmond";
c.moveTo(200,?300);
c.arc(200,?300,?100,?Math.PI?*?7?/?6,?Math.PI?*?11?/?6);
c.closePath();
c.fill()
//用stroke繪制扇形
c.beginPath();
c.strokeStyle?=?"coral";
c.lineWidth?=?100;
c.arc(600,?300,?150,?Math.PI?*?11?/?6,?Math.PI?*?7?/?6,?true);
c.stroke();
- 1 回答
- 1 關(guān)注
- 3665 瀏覽
添加回答
舉報(bào)
0/150
提交
取消