DColorMixer

From GMod Wiki

Jump to: navigation, search
Derma Control: DColorMixer
Parent Class:Panel
Subclasses:
Description:
The color chooser used in the color stool

Examples

DescriptionCreates a simple color chooser
Used onNewerClient.png
Code
 
local color = vgui.Create( "DColorMixer");
color:SetSize( 160, 100);
color:SetPos( 50, 50 );
color:SetColor(Color(255,0,255,255))
local color2=color:GetColor()
print(color2.r,color2.g,color2.b)
 
OutputDColorMixer.PNG


Methods

NewerClient.png DColorMixer.GetColor
NewerClient.png DColorMixer.SetColor

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox