DColorCircle

From GMod Wiki

Jump to: navigation, search
Derma Control: DColorCircle
Parent Class:DSlider
Subclasses:
Description:
A circle shaped control for choosing an RGB color.

Examples

DescriptionCreates a basic color circle constantly printing its color. (See DColorCircle.GetRGB for the reason 'or Color()' is necessary)
Used onNewerClient.png
Code
local colorCircle = vgui.Create( "DColorCircle", frame )
colorCircle:SetPos( 10, 30 )
colorCircle:SetSize( 100, 100 )
colorCircle.PaintOver = function()
	PrintTable( colorCircle:GetRGB() or Color() )
end
 
Output4bbb5e23afec3-DColorCircle.png


Methods

NewerClient.png DColorCircle.GetRGB
NewerClient.png DColorCircle.Init
NewerClient.png DColorCircle.PerformLayout
NewerClient.png DColorCircle.Think

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox