WoW:API ColorSelect GetColorRGB: Difference between revisions

({{widgetmethod}})
m (Move page script moved page API ColorSelect GetColorRGB to API ColorSelect GetColorRGB without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod}}
{{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.


Example:
local r, g, b = ColorSelect:GetColorRGB()


  local r, g, b = ColorPicker:GetColorRGB();
== Parameters ==
=== Arguments ===
: none
 
=== Returns ===
* r (number) - The red value of the color
* g (number) - The green value of the color
* b (number) - The blue value of the color

Latest revision as of 04:45, 15 August 2023

Widget API ← ColorSelect < GetColorRGB

Returns the RGB values of the currently selected color.

local r, g, b = ColorSelect:GetColorRGB()

Parameters

Arguments

none

Returns

  • r (number) - The red value of the color
  • g (number) - The green value of the color
  • b (number) - The blue value of the color