draw.RoundedBox
From GMod Wiki
| Function | |
| Syntax |
draw.RoundedBox( Number Bordersize, Number X, Number Y, Number Width, Number Height, Color Color ) Where is this used? |
| Description: | |
| Draws a rounded box on the screen. | |
| Returns: | nil |
| Part of Library: | Draw |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Draw.RoundedBox]Draw.RoundedBox [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Draw a white rounded box |
|---|---|
| Used on | |
| Code | draw.RoundedBox( 6, 100, 50, 100, 23, Color( 255, 255, 255, 150 ) ) |
| Output | Draws a white rounded box with dimensions 100x23 at screen position 100, 50. |
Additional Notes
- The corner value must be an even number. (2,4,6,8, and so on)
- The corner value must be higher or equal to 2