G.ScreenScale
From GMod Wiki
(Redirected from G.SScale)
Function | |
Syntax |
ScreenScale( Number size ) Where is this used? |
Description: | |
Returns a number based on the size given and the screen's width. | |
Returns: | Number |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.ScreenScale]G.ScreenScale [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Source Code. |
---|---|
Used on | |
Code | function ScreenScale( size ) return size * ( ScrW() / 640.0 ) end |
Output | N/A |