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.

https://github.com/SuperiorServers/plib_v2/blob/master/lua/plib/extensions/client/surface.lua#L69

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