Author Topic: Hat Color Change  (Read 1051 times)

I have an Add-on that is just like rainbow funky shirt, but only the hat changes colors. I would like to know how to tell what colors they would be.

$pref::Avatar::HatColor=$R SPC $G SPC $B SPC "1";

The                              R         G         B                    are the original colors. How can I tell what colors that would create for my hat?

So if somebody could post what letters stand for each colors, that'd b great. Thanks

RGB colors (what you are using) is a set of 3 numbers 0 - 255. The higher the number is the more value for that color. RGB stands for red green blue. So 255 0 0 would be pure red.

i think he's using decimals here, so 0-1 instead of 0-255

i think he's using decimals here, so 0-1 instead of 0-255
Oh yeah my bad. Don't understand how I didn't notice that haha.

RGB colors (what you are using) is a set of 3 numbers 0 - 255. The higher the number is the more value for that color. RGB stands for red green blue. So 255 0 0 would be pure red.
Actually, brown and yellow also show up if I'm understanding you correctly.

What I want just want to know is how to make it torquoise.

Actually, brown and yellow also show up if I'm understanding you correctly.
yellow is FFFF00, or 1 1 0 1
What I want just want to know is how to make it torquoise.
try 0 1 1 0, or 00FFFF in the chat (<color:00ffff>test) for events/server message

edit: or go to http://html-color-codes.com/

yellow is FFFF00, or 1 1 0 1try 0 1 1 0, or 00FFFF in the chat (<color:00ffff>test) for events/server message

edit: or go to http://html-color-codes.com/
Ok, there aren't any numbers up there. So would I do FF300 00FF00 0000FF Instead of R G B?

Ok, there aren't any numbers up there. So would I do FF300 00FF00 0000FF Instead of R G B?
No. You would use numbers. FFFF00 is hex code for 1 1 0, which is RGB for yellow. The only time you would use hex codes is when you are coloring text. ie. <color:FFFFF00>. But in this case you want RGB, so ignore those letters.

when they do FFFF00, break it into FF FF 00, then convert the hexidecimal into decimal (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F -> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
and you'll get 15 15   15 15   0 0
multiply the first number (15 15) by 16 to get 240, add the 2nd number (15 15) to get 255
then divide that by 255 to get the numerical equivalent

F0AF05 -> 240 175 5 -> 0.94 0.69 0.20 (rounded)

No. You would use numbers. FFFF00 is hex code for 1 1 0, which is RGB for yellow. The only time you would use hex codes is when you are coloring text. ie. <color:FFFFF00>. But in this case you want RGB, so ignore those letters.
Ok, I'm getting it. but what do i change/replace to change the colors? (i must be looking like a total fool right now)

Where ever it says $R = or $G = or $B =, change those values.

Where ever it says $R = or $G = or $B =, change those values.
So 1 1 0 instead of R G B?

If only you could use variables for the colorcodes. . .

Oh, thank god, I found out how to do it. Locking, thanks guys.