

Now that you have all those numbers, you can start making the color codes. In my example i would have 255 / 5 = 51, 255 / 5 = 51, and a 0 so i dont do anything(i will refer to these numbers later as the numbers that where divided). Now you take all the numbers that you got, and divide them by the number of letters/numbers your text has(if one of the numbers you got was 0, you do not do this because it stays the same through the whole gradient). Do that with for the G's and B's(in my example, 255 - 0 = 255, and 0 - 0 = 0). In my example it is 255, and 0, so i do 255 - 0 = 255. So take the R's from the first color code, and the R's from the second, and minus the smaller one from the bigger one. For the next step, we need to find the difference of all the R's, G's, and B's. Remember that number because we will use it later. Now, count how many letters/numbers your text has(not counting spaces), 'Cool!!' has 6, then minus 1 from that, 6 - 1 = 5. Then you'll need the text, i'll use 'Cool!!'. This is kind of hard to explain but i will try my best(there is colored text to help people see where a number is coming from) First thing your gunna need to do is get 2 RGB format colors, start and end, for example i'll use 255 0 0 (red) and 0 255 0 (green). In Game Player Colors: |c00FF0303Player 1|r |c000042FFPlayer 2|r |c001CE6B9Player 3|r |c00540081Player 4|r |c00FFFC01Player 5|r |c00fEBA0EPlayer 6|r |c0020C000Player 7|r |c00E55BB0Player 8|r |c00959697Player 9|r |c007EBFF1Player 10|r |c00106246Player 11|r |c004E2A04Player 12|r Player 13: Maroon|cff9c0000 Player 14: Navy|cff0000c3 Player 15: Turquoise|cff00ebff Player 16: Violet |cffbd00ff Player 17: Wheat|cffecce87 Player 18: Peach |cfff7a58b Player 19: Mint |cffbfff81 Player 20: Lavender |cffdbb8eb Player 21: Coal |cff4f5055 Player 22: Snow|cffecf0ff Player 23: Emerald|cff00781e Player 24: Peanut|cffa56f34 Player Neutral: Black |cff2e2d2e Making A "Rainbow" Effect(Gradients)!

Here is a list counting up to 30 in Decimal and Hexadecimal: So you get your Red, Green, and Blue values, convert them to Hexadecimal, and put them in this format |c00RRGGBBText|r. For example: 42 dividend 16 = 2( 2), and 42 modulus 16 = 10( A), which gives you 2A. For the first digit of HEX you do # dividend 16(dividend just means division without decimals or remainders: 10 dividend 3 = 3), for the second digit, its # modulus 16(modulus just means remainder: 10 modulus 3 = 1). To convert DEC-HEX you have to do the oposite. A = 10, B = 11, and so on) multiplied by 16, then add the value of the right digit. To convert HEX-DEC you would take the value of the left number/letter in the number(0 = 0, 1 = 1. To count in Hexadecimal up to 255(the max you can have in Red, Green, or Blue in RGB), you use 2 digits.

Hexadecimal base numbers are: 0 1 2 3 4 5 6 7 8 9 A B C D E F, 16 base numbers!?!? Color Codes Edit! When counting in Decimal(Regular counting), the base numbers that make up every other number, are 0-9. But RGB is set up like #,#,# isn't it? Yes, but WC3 use's Hexadecimal to create its RGB, just like HTML! Hexadecimal The second, third and fourth pairs of numbers/letters(2A, 3B, and 4C in the example) is the Red, Green, and Blue values in RGB. The first 2 numbers/letters(00 in the example) is the transparency, i will not get into transparency in this tutorial. |c is required at the begining of the color whenever doing WC3 Color Codes. The |c tells WC3 that you are starting a color, and the |r resets colors(making it the default color of what you are editing). But what does it all mean!?!? WC3 Color Codes use RGB(Red Green and Blue) values to create the colors, but its not as easy as putting a couple of numbers together. You have probably seen WC3 Color Codes before, something like |c002A3B4CBuild|r. Creating 'rainbows' (gradients.) Wc3 color code generators made by me! Explanations Next there will be a small list of some colors (The color of the text may not be the same as in the game because you cant make custom colors for the forums.) If you still need help or I did not do a good job, please post a reply.
#Lua color code generator how to#
It will explain what all the numbers and letters mean and how to make them. This is a basic tutorial about creating color codes for WC3.
