Garry's Mod Wiki

DRGBPicker:GetRGB

Description

Returns the color currently set on the color picker.

Returns

1 table
The color set on the color picker, see Color.

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