FANDOM


({{widgetmethod}})
(Updated to match the current API boilerplate.)
Line 1: Line 1:
{{widgetmethod}}
+
{{widgetmethod}} __NOTOC__
{{stub/api}}
 
   
Returns three values: the r, g, and b values of the currently selected color in the ColorSelect frame.
+
Returns the RGB values of the currently selected color.
  +
r, g, b = ColorSelect:GetColorRGB()
   
Example:
 
   
local r, g, b = ColorPicker:GetColorRGB();
+
== Arguments ==
  +
None
  +
  +
  +
== Returns ==
  +
:r, g, b
  +
:; r : Number - The red value of the color
  +
:; g : Number - The green value of the color
  +
:; b : Number - The blue value of the color

Revision as of 15:11, June 27, 2007

Widget API ← ColorSelect < GetColorRGB

Returns the RGB values of the currently selected color.

r, g, b = ColorSelect:GetColorRGB()


Arguments

None


Returns

r, g, b
Number - The red value of the color
Number - The green value of the color
Number - The blue value of the color
Community content is available under CC-BY-SA unless otherwise noted.