Garry's Mod Wiki

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

Page Links


Special Pages


Wikis

?

Render Time: 32ms

DB GetPage 3
Generate Html 6
SaveChanges (1) 9
Render Body 0
Render Sidebar 12