1. Anders Ruud
  2. love
  3. Issues

Issues

Issue #855 duplicate

Seemingly infinite outline on arc as angle2 approaches tau

OttoRobba
created an issue

I found a small bug when animating arcs. As the second angle approaches tau, the outline starts to misbehave as seen on the image.

Code is as follows:

love.graphics.setColor(255,255,255)
love.graphics.setLineWidth(10)
love.graphics.arc("line", 400, 300, 100, 0, math.pi*(0+(59.9/10)/3))

Same happens with:

love.graphics.setColor(255,255,255)
love.graphics.setLineWidth(10)
love.graphics.arc("line", 400, 300, 100, 0, math.pi*1.999)

This would not be a problem for static values (just round up/down the 1.999) but when animating with dt, it is highly noticeable.

Comments (3)

  1. OttoRobba reporter

    The fix does work but like you pointed out, the arcs can look quite "funky", specially with thicker lines. I wonder if there is a better solution. I'll test with different algorithms.

  2. Log in to comment