DRGBPicker/GetRGB

From Garry's Mod
Jump to: navigation, search
 DRGBPicker:GetRGB( )

Contents

DescriptionPanelFunc

Returns the color currently set on the color picker.

Returns

table

The color set on the color picker, see Color structure.

Examples

Example

Prints out the default set color.

local color_picker = vgui.Create("DRGBPicker")
color_picker:SetSize(25, 150)
color_picker:Center()

print(color_picker:GetRGB())

Output:

255 255 255 255
Personal tools
Navigation