how to apply hsv to rgb
I'm currently using a gradient of green to red for text printed through chat and I can't figure out how to make it brighter as currently it comes out dark and harder to read
EDIT: figured it out sorry |
Here's an example of turning hex to rgb values: http://www.wowpedia.org/HexToRGB
This old addon has a saturation slider that you can look at the code for: http://www.wowinterface.com/download...olorTools.html |
LibCrayon 3.0 implements various colour functions including what you want.
Even though it's written for WOTLK, I think it can just be embedded into your AddOn. You can also look at Leaf's color library. |
LibCrayon still has code for Ace2 and Rock... I would not recommend using a library that's so obviously abandoned unless you plan to take responsibility for its future upkeep.
That Leaf color library looks pretty nice. I'd just copy the function(s) you need from that. |
Quote:
|
Yeah, but the fact that that code is still there is a pretty big red flag indicating that nobody has been maintaining that library for a very long time. Both Ace2 and Rock were deprecated back in Wrath.
|
All times are GMT -6. The time now is 10:25 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI