segments: 2, 4, 6*, 10 and more after that have the weird line.
segment 6 also is having a wierd issue with the background segment not matching perfectly too.
Thank you in advance.
Code: Select all
function drawFillSegment(segments, x, y, radius)
love.graphics.setLineStyle("smooth")
local p2 = math.pi*2
local slice = p2 / segments
for i = 1, segments do
love.graphics.arc("fill", x, y, radius, p2 * slice, slice * i)
end
end
function drawLineSegments(segments, x, y, radius)
love.graphics.setLineStyle("smooth")
local p2 = math.pi*2
local slice = p2 / segments
for i = 1, segments do
love.graphics.arc("line", x, y, radius, p2 + slice, slice * i)
end
end