Last active
March 21, 2017 10:58
-
-
Save mattkrins/463df308c8e0db68f1fb548f537f905c to your computer and use it in GitHub Desktop.
A simple but practical Garry's Mod draw helper function, particularly useful with 3D2D rendering operations.
This file contains hidden or 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
function draw.ContainerBox( r, x, y, w, h, c, p ) | |
draw.RoundedBox( r or 0, x or 0, y or 0, w or 0, h or 0, c or color_white ) | |
if p then p(x or 0, y or 0, w or 0, h or 0) end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example:
Result: