HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Player Colour Codes?

10-27-2005, 11:17 AM#1
Earth-Fury
(its spelt coloUr you foolish americans!)

what are the colour codes for players? now im not talking about aproximate colours. im talkin EXACT! (colour code as in a text colour code, eg: |cffffcc00 )
10-27-2005, 01:16 PM#2
Tim.
On wc3search there is a JASS function toot made to get them, use it and write them down.
10-28-2005, 02:49 AM#3
Tooolbox
Heh, you could play around with the function?

I dunno if you guys know this (if so, this is kidna noobish) but the text in there is not random, it's hexadecimal. |c is the color command, I guess. ff might be transparency, but I messed with it and it did nothing... then the ffcc00 is RRGGBB. Each set of values ranges from 00 to ff. That code right there is yellow. ff0000 is red, 00ff00 is green, and 0000ff is blue. I'm not sure about the more complex colors like teal and so forth, but like I said you can mess around.
10-28-2005, 05:18 AM#4
Earth-Fury
Quote:
Originally Posted by Tooolbox
Heh, you could play around with the function?

I dunno if you guys know this (if so, this is kidna noobish) but the text in there is not random, it's hexadecimal. |c is the color command, I guess. ff might be transparency, but I messed with it and it did nothing... then the ffcc00 is RRGGBB. Each set of values ranges from 00 to ff. That code right there is yellow. ff0000 is red, 00ff00 is green, and 0000ff is blue. I'm not sure about the more complex colors like teal and so forth, but like I said you can mess around.

i knew that.... my question was of a more simple nature :P

|cAARRGGBBtext|r
|c initiates the colour.
AA is alpha. then RRGGBB.
text is the coloured text.
|r ends the colour code.
|n is a line break.

the values of ARGB are hex values, tthe same type you use in HTML. (eg: #FFFFFF translates to |cFFFFFFFF|r)

the alpha of text is useless, because text cannot be transparent.
10-28-2005, 05:53 AM#5
Anitarf
HEX Values:
|c00ff0303player1|r |c000042ffplayer2|r |c001ce6b9player3|r
|c00540081player4|r |c00fffc01player5|r |c00feba0eplayer6|r
|c0020c000player7|r |c00e55bb0player8|r |c00959697player9|r
|c007ebff1player10|r |c00106246player11|r |c004e2a04player12|r

XXX/255 Values:
red: 255-3-3
blue: 0-66-255
teal: 28-230-185
purple: 84-0-129
yellow: 255-252-1
orange: 254-186-14
green: 32-192-0
pink: 229-91-176
grey: 149-150-151
light blue: 126-191-241
dark green: 16-98-70
brown: 78-42-4

RGB % Values:
red: 100.00, 1.17, 1.17
blue: 0.00, 25.88, 100.00
teal: 9.80, 90.20, 72.55
purple: 32.94, 0.00, 50.59
yellow: 100.00, 98.82, 0.40
orange: 99.61, 72.94, 5.49
green: 12.55, 75.30, 0.00
pink: 89.80, 35.69, 69.02
grey: 58.43, 58.82, 59.21
light blue: 49.41, 74.90, 94.51
dark green: 6.27, 38.43, 27.45
brown: 30.59, 16.47, 1.57
10-28-2005, 06:43 AM#6
Tooolbox
Yeah, I knew it was the alpha (transparency=alpha). But then why do they even bother? You realize you can make text transparent...notice how printed messages fade? Duh.

But I'm glad anitarf could provide you with the codes, lol...a little complicated eh?

(Btw I'd done HTML and QB too so that's why I knew it was Hex...so we both knew and there I was intstructing you on what it was, lol...)
10-28-2005, 07:44 AM#7
Earth-Fury
Quote:
Originally Posted by Tooolbox
(Btw I'd done HTML and QB too so that's why I knew it was Hex...so we both knew and there I was intstructing you on what it was, lol...)

and in a past life, i was a D2 open bnet "player" ;) so my hex knoladge is rather large :)

and you cant make text transparent with colour codes :P im guessing its another "half" implimented feature...
10-28-2005, 02:36 PM#8
Tooolbox
Huh. I gotcha. (What's D2?)
10-28-2005, 03:04 PM#9
Panto
In some situations, you can make text transparent using that alpha value, just like in some situations, icons use the alpha layer as transparency (hint: in the multiboard).
10-28-2005, 05:18 PM#10
Earth-Fury
Quote:
Originally Posted by Panto
In some situations, you can make text transparent using that alpha value, just like in some situations, icons use the alpha layer as transparency (hint: in the multiboard).

hmnn... where can text be transparent? leaderboard titles? multiboards? i wonder....