js canvas white line between 2 objects

一笑奈何 提交于 2020-01-16 10:38:04

问题


enter image description hereI'm having a problem with my graphic objects on canvas. My Rectangle consists out of two triangles. But when I fill the path of both triangles a little white line in between of them occurs. It's on the diagonal of the rectangle.

s.initQuadrangle(new Point3D([100, 100, 0]), new Point3D([200, 100, 0]), new Point3D([200, 200, 0]), new Point3D([100, 200, 0]));

The points are not floats as you can see.

来源:https://stackoverflow.com/questions/50518178/js-canvas-white-line-between-2-objects

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