• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

wc3 color codes --> RGB?

Status
Not open for further replies.
Level 7
Joined
Jul 4, 2007
Messages
249
Hi, I've been searching around but I cannot find what I'm looking for. I have color codes in tooltips (for example |cff00c850) that I want to make RGB to use in floating text, how can I do this?
 
Level 13
Joined
May 10, 2009
Messages
868
|c indicates that a hexadecimal color code is about to start. The first two characters define the alpha amount, though alpha is not yet supported by Warcraft - just leave it as FF. The rest defines the Red, Green, and Blue colors, respectively.

So, to convert Hex code to RGB, you can use third-party softwares, like image editors (photoshop), or even sites like this one. Don't forget to exclude the first 4 characters from Warcraft 3's hex code. E.g. |cff00c850 --> 00c850 --> rgb(0,200,80)
 
Last edited:
Level 8
Joined
May 21, 2019
Messages
435
HTML Color Picker
This simple tool will allow you to pick a color from a visual color palette and get to know the hex code for that color. It's entirely web-based, so you don't need to install any software or whatever. I think that makes it quite accessible.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
I want to make RGB to use in floating text, how can I do this?
Set the colour of the floating text using the appropriate function...
JASS:
native SetTextTagColor takes texttag t,integer red,integer green,integer blue,integer alpha returns nothing
Or use the GUI adapter action to the function.
 
Status
Not open for further replies.
Top