function to draw arc with specified degrees and thickness

im trying to use surface.DrawPoly() but it is a bit confusing.

Check out plib by aStonedPenguin on github. I think I remember seeing some arc functions in there.

If the thickness and size of your arc is constant, you might be better creating a high rez image instead, and using a stencil to change the amount of degrees drawn, as drawing circles and such using draw.poly can be expensive.

Although, it used to be in MoonScript so the source code is a bit messy.