DColorMixer/GetColor

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Last one!)
(Adding warning that return type is not actually Color, but rather a table with the keys necessary to construct one)
 
Line 4: Line 4:
 
|Description=Returns the current selected color.
 
|Description=Returns the current selected color.
 
}}
 
}}
 +
{{Warning|This method returns a '''table''' with keys r,g,b,a and not a Color type}}
 
{{Ret
 
{{Ret
 
|type=table
 
|type=table
 
|desc=The current selected color as a {{Struct|Color}}.
 
|desc=The current selected color as a {{Struct|Color}}.
 
}}
 
}}

Latest revision as of 18:13, 16 January 2020

 DColorMixer:GetColor( )

DescriptionPanelFunc

Returns the current selected color.

WARNING

This method returns a table with keys r,g,b,a and not a Color type

Returns

table

The current selected color as a Color structure.
Personal tools
Navigation