WoW:API ColorSelect GetColorRGB: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{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, 27 June 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
r
Number - The red value of the color
g
Number - The green value of the color
b
Number - The blue value of the color