How can I avoid polygon edge stitching artifacts in HTML5 Canvas?

后端 未结 3 682
无人及你
无人及你 2021-01-02 18:51

I maintain parallel Flash and HTML5/Canvas renderers for the OpenHeatMap open-source project. I\'m plagued by an inconsistency in the rendering of filled polygons with fract

3条回答
  •  伪装坚强ぢ
    2021-01-02 19:26

    Have you considered truncating all drawing coords? It shouldn't reduce quality, and it might fix your issue.

    You could also draw a line over the troubling area to make the issue invisible.

    If all else fails, that should work.

提交回复
热议问题