Garry's Mod Wiki

ControlPanel:ColorPicker

  Panel ControlPanel:ColorPicker( string label, string convarR, string convarG, string convarB, string convarA )

Description

Creates a CtrlColor (a color picker) panel and adds it as an item.

Arguments

1 string label
The label for this color picker.
2 string convarR
Name of the convar that will store the R component of the selected color.
3 string convarG
Name of the convar that will store the G component of the selected color.
4 string convarB
Name of the convar that will store the B component of the selected color.
5 string convarA
Name of the convar that will store the A component of the selected color.

Returns

1 Panel
The created CtrlColor panel.