EngoEngine / engo

Engo is an open-source 2D game engine written in Go.
https://engoengine.github.io
MIT License
1.73k stars 137 forks source link

Double drawing and proper number of verts #767

Closed Noofbiz closed 3 years ago

Noofbiz commented 3 years ago

I was counting the vertex that sets it to the center as a vertex that draws the circle, which led to an off-by-one offset in the circle. This caused the angles to be a little smaller than they should've been when using Circle.Arc, as well as double drawing of some triangles when the transparency was set to something other than 1 or 0.

Fixes for #766

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 40.922% when pulling 6405c04e06092e0dd097c6072477198c7dc1fe7d on draw-circle-borders into f59b4f02d4daa99c2ada4dcdd4f5d6ff47747d0a on master.