Canvas draws artifacts in Safari for animated, filled bezier curves

半腔热情 提交于 2019-12-10 16:48:02

问题


I created an animated HTML5 canvas that uses bezier curves to draw a filled pattern.

I have been testing it in Chrome for Mac. I only seem to see this on Safari for Mac.

For some reason, I see little artifacts left behind by the figures (see below that is moving to the left and the artifacts go off to the right).

I trigger a redraw by changing the width of the canvas to its current width, if that helps...

Also, if I mouse over the canvas or change windows the artifacts go away. Since I think it decides to redraw the whole thing over.

Does anyone know why this would be happening?

来源:https://stackoverflow.com/questions/4998857/canvas-draws-artifacts-in-safari-for-animated-filled-bezier-curves

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!