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?
 
|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:
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.
 
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.
Back
Top