举出一条路,然后用<条码>全球合作行动=“延伸-out”条码”来计算:
function drawPath(ctx){
ctx.beginPath();
ctx.moveTo(0, 0);
ctx.lineTo(120, 120);
ctx.bezierCurveTo(30, 40, 30, 40, 40, 120);
ctx.lineTo(0, 0);
ctx.fill();
}
drawPath(ctx);
ctx.globalCompositeOperation = "destination-out";
drawPath(ctx);
Then there are leftovers on the anti-alised edges. This happens in both Firefox and Chrome.
难道我可以做些什么去除他们(或者说他们没有露面),如果没有,预计会发生这种情况吗?