function to draw arc with specified degrees and thickness
3 replies, posted
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.
[QUOTE=anka067;50269153]im trying to use surface.DrawPoly() but it is a bit confusing.[/QUOTE]
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.
[QUOTE=DanielHershey;50269191]Check out plib by aStonedPenguin on github. I think I remember seeing some arc functions in there.[/QUOTE]
[url]https://github.com/SuperiorServers/plib_v2/blob/master/lua/plib/extensions/client/surface.lua#L69[/url]
Although, it used to be in MoonScript so the source code is a bit messy.
Sorry, you need to Log In to post a reply to this thread.