• 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.

Floating text color

Status
Not open for further replies.
Level 17
Joined
Nov 13, 2006
Messages
1,814
100,100,100 = white
0,0,0 = black

how to create yellow - or even better - gold color ??

100 100 0=yellow
its: red green blue

http://html-color-codes.info/

just there 100 is 100% and its in website 100%=255

for makeing orage put less green than red but still 0 blue or just few blue

its same than tooltip color where
|c <= color
|cff <= here ff => hexadecimal and in decimal is 255 so max value and its about transparency if thios value lower than its more transparent
|cffff <=second 2 f is red color cod same like in site
|cffffff <=3rd 2 f is green color cod same like in site
|cffffffff <=4ty 2 f is blue color cod same like in site
|cffffffff <= absolute no transparency and 100% (255) red and 100% (255) green and 100% (255) blue so this will be white
with text u can close with |r

red text => |cffff0000Red Text|r

easy to transform decimal to percentage
with windows calculater u can convert hexadecimal to decimal in scintist mod ff=>255
formula: decimal value/255*100=>if value 255 then its 100% etc

more info here
http://www.thehelper.net/forums/showthread.php/111837-Warcraft-Color-Code-List
http://world-editor-tutorials.thehelper.net/colors.php
http://www.d3scene.com/forum/warcraft-3-custom-maps/15064-color-codes-warcraft-3-a.html
http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=138460
 
100 100 0=yellow
its: red green blue

http://html-color-codes.info/

just there 100 is 100% and its in website 100%=255

for makeing orage put less green than red but still 0 blue or just few blue

its same than tooltip color where
|c <= color
|cff <= here ff => hexadecimal and in decimal is 255 so max value and its about transparency if thios value lower than its more transparent
|cffff <=second 2 f is red color cod same like in site
|cffffff <=3rd 2 f is green color cod same like in site
|cffffffff <=4ty 2 f is blue color cod same like in site
|cffffffff <= absolute no transparency and 100% (255) red and 100% (255) green and 100% (255) blue so this will be white
with text u can close with |r

red text => |cffff0000Red Text|r

easy to transform decimal to percentage
with windows calculater u can convert hexadecimal to decimal in scintist mod ff=>255
formula: decimal value/255*100=>if value 255 then its 100% etc

more info here
http://www.thehelper.net/forums/showthread.php/111837-Warcraft-Color-Code-List
http://world-editor-tutorials.thehelper.net/colors.php
http://www.d3scene.com/forum/warcraft-3-custom-maps/15064-color-codes-warcraft-3-a.html
http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=138460

K, sound really informative:
FACB31 = ?
FA - CB - 31
250 - 203 - 49
now how i turn this into % ?
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
K, sound really informative:
FACB31 = ?
FA - CB - 31
250 - 203 - 49
now how i turn this into % ?

u dont must do that way coz each number pair is different color, its like painting: a put to paper red and blue then its will magenta/purple, simple just pick a pair of number coz color code is like this
RRGGBB
rr=0.255 (in hexadeximal 0..ff)
gg=0.255(in hexadeximal 0..ff)
bb=0.255(in hexadeximal 0..ff)
2red 2green 2blue, u dont must div
RED the 1st number pair
FA=250=>250/255*100=>98.039215686274509803921568627451=>98.03%
GREEN the 2nd number pair
CB=203=>203/255*100=>79.60784313725490196078431372549=>79.06%
BLUE the last number pair
31=49=>49/255*100=>19.21568627450980392156862745098=>19.21

just a info, u dont need this, when example some program language use the colors then use this way
FA=250
CB=203
31=49
Final color just 1 number= Red + Green * 256 + Blue * 65536=250+203*256+49*65536=250+51968+3211264=3263482
if u convert this number(3263482) in calculator from decimal to hexadecimal then output is 31CBFA so exactly ur hexa color code just invers order (BBGGRR)
easily the color depth is 256 and a single number can contain this 3 number and u can mix any number, the advantage of hexa color code is u can do nearly any color from 6 character :p
 

Attachments

  • 1.jpg
    1.jpg
    33.8 KB · Views: 181
  • 2.JPG
    2.JPG
    33.4 KB · Views: 188
Level 9
Joined
Nov 19, 2011
Messages
516
Use windows calculator. :D If you turn him to programers mode you can one-click transform from hex to dec. Then just divide it by 255 adn you will see percentage.
==============================================================================================================
0.9 is 90% of course
 
Last edited:
Status
Not open for further replies.
Top