This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Draws an arc on your screen. | |
-- startang and endang are in degrees, | |
-- radius is the total radius of the outside edge to the center. | |
-- cx, cy are the x,y coordinates of the center of the arc. | |
-- roughness determines how many triangles are drawn. Number between 1-360; 2 or 3 is a good number. | |
function draw.Arc(cx,cy,radius,thickness,startang,endang,roughness,color) | |
surface.SetDrawColor(color) | |
surface.DrawArc(surface.PrecacheArc(cx,cy,radius,thickness,startang,endang,roughness)) | |
end |