Garry's Mod Wiki

DRGBPicker:GetRGB

DRGBPicker:GetRGB

table 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

Special Pages


Wikis

?

Render Time: 18ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 6
Render Body 0
Render Sidebar 6