Thread Tools Display Modes
11-13-09, 06:57 PM   #1
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar
Join Date: Sep 2008
Posts: 354
!lyn colors to match recount

okay, so the !lyncolor uses x.xx and recount colors just use xx
how do i convert them to match these colors in RGB form?

Code:
RAID_CLASS_COLORS = {
	["HUNTER"] = { r = 0.56, g = 0.76, b = 0.13 },
	["WARLOCK"] = { r = 0.58, g = 0.41, b = 0.79 },
	["PRIEST"] = { r = 0.29, g = 0.75, b = 0.71 },
	["PALADIN"] = { r = 1.00, g = 0.27, b = 0.64 },
	["MAGE"] = { r = 0.41, g = 0.75, b = 1 },
	["ROGUE"] = { r = 0.98, g = 0.71, b = 0.21 },
	["DRUID"] = { r = 1.0, g = 0.40, b = 0.04 },
	["SHAMAN"] = { r = 0.00, g = 0.75, b = 0.95 };
	["WARRIOR"] = { r = 1.00, g = 0.32, b = 0.33 },
	["DEATHKNIGHT"] = { r = 0.77, g = 0.12 , b = 0.23 },
};
  Reply With Quote
11-13-09, 07:12 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
WoW takes color values with a range of 0 to 1. If you see a number that is not between 0 and 1 being used for color, then somewhere along the line in the addon's code, it is being divided by 255.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » !lyn colors to match recount

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off