fill的時候外面半邊圓整個被填充了,怎么才能只填充月亮部分
context.beginPath(); context.strokeStyle?=?'#c92'; context.lineWidth?=?3; //?畫圈?…… context.fillStyle='#ee0'; context.fill(); //?context.closePath(); context.stroke();
context.beginPath(); context.strokeStyle?=?'#c92'; context.lineWidth?=?3; //?畫圈?…… context.fillStyle='#ee0'; context.fill(); //?context.closePath(); context.stroke();
2021-05-17
舉報
2021-05-17
找不到在哪里刪除這個評論,已經(jīng)解決了。
在畫外圓的時候arc(..., true);逆方向畫圓就行了