Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
No edit summary
m (catfix, Replaced: {{widgetmethod}}<br> → {{widgetmethod}})
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
{{widgetmethod}} __NOTOC__
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.
Example:
 
 
r, g, b = ColorSelect:GetColorRGB()
   
local r, g, b = ColorPicker:GetColorRGB();
 
   
  +
== Arguments ==
{{API/Uncategorized}}
 
  +
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 23:53, 14 July 2008

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