WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   !lyn colors to match recount (https://www.wowinterface.com/forums/showthread.php?t=28497)

mankeluvsit 11-13-09 06:57 PM

!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 },
};


Seerah 11-13-09 07:12 PM

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.


All times are GMT -6. The time now is 11:22 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI