drawArc(arc) ignores the direction of the arc

Ran into this today too, this little snippet seemed to do the trick for me, but it's not rigorously tested:

local origDrawArc = playdate.graphics.drawArc
function playdate.graphics.drawArc(arc)
  if arc:isClockwise() then
    origDrawArc(arc.x, arc.y, arc.radius, arc.startAngle, arc.endAngle)
  else
    origDrawArc(arc.x, arc.y, arc.radius, arc.endAngle, arc.startAngle)
  end
end
1 Like