DRGBBar.GetHue

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:GetHue( )
Description:
Returns the value color to GetHue().
Returns: Integer value
In Object: DRGBBar
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DRGBBar.GetHue]DRGBBar.GetHue [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionReturns the value color in a GetHue.
Used onNewerClient.png
Code
 
local color = HSVToColor(DRGBBar:GetHue(), 1, 1)
print("R= "..color.r .." G= ".. color.g ..  " B= ".. color.b )
 
OutputReturns "R= 0 G= 0 B= 255" in the console.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox