Thread Tools Display Modes
05-26-13, 08:19 PM   #1
Spawnova
A Warpwood Thunder Caller
 
Spawnova's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2012
Posts: 96
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

Last edited by Spawnova : 05-26-13 at 08:42 PM.
  Reply With Quote
05-26-13, 08:50 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
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
__________________
"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
05-31-13, 04:10 PM   #3
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
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.
  Reply With Quote
05-31-13, 07:54 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
06-01-13, 04:10 AM   #5
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Originally Posted by Phanx View Post
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.
  Reply With Quote
06-01-13, 04:16 AM   #6
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » how to apply hsv to rgb


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