19.08.2010, 10:14
Quote:
You can use any variety of colors you want. Its simple RGB in hexademical.
And you can make up to, 16581375 colors(without alpha, 255[R]*255[G]*255[B]) |
Hexadecimal is just a different numbering system that is based on powers of 16, instead of 10. Its an odd concept at first, but you get used to it.
let's compare our decimal numbering system (base 10) against hexadecimal (base 16):
Decimal:
Code:
0,1,2,3,4,5,6,7,8, and 9
Code:
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
lets take a look at counting:
Code:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Code:
0 1 2 3 4 5 6 7 8 9 A B C D E F //15 10 //16 11 12
1a = 26. How do i know? i'll show you:
1 * 16^1 + 10 * 16^0. So 16+10=26. Maybe that was to easy, lets try FFFF!
15 * 16^3 + 15 * 16 ^ 2 + 15 * 16 ^ 1 + 15 * 16 ^ 0.
which is:
61440+3840+240+15 = 65535, which is completely right.
So basically its: VALUE * 16 to the power of the current place :P.
</end pointless nerdy rant>