WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   how to apply hsv to rgb (https://www.wowinterface.com/forums/showthread.php?t=46559)

Spawnova 05-26-13 08:19 PM

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

Seerah 05-26-13 08:50 PM

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

ravagernl 05-31-13 04:10 PM

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.

Phanx 05-31-13 07:54 PM

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.

ravagernl 06-01-13 04:10 AM

Quote:

Originally Posted by Phanx (Post 279053)
LibCrayon still has code for Ace2 and Rock...

The code you mention is optional compat code to incorporate the library into these "libstubless" containers. The library itself does not make use of any acelibrary functions itself.

Phanx 06-01-13 04:16 AM

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