Hexadecimal Tutorial.

  • Diissaster
    21st Nov 2010 Member 0 Permalink
    With 16,777,216 colours i certainly love hexadecimal.

    For anyone who Doesn't know hex, this is how it works:

    There are 16 chars in hex: 01234567890ABCDEF

    There are 6 letters in a hex colour.

    The first two represent red.

    The second two green.

    And the last blue.

    The first character for each of these represents a certain amount of colour.

    0 = 0
    1 = 16
    2 = 32
    3 = 48
    4 = 64
    5 = 80
    6 = 96
    7 = 112
    8 = 128
    9 = 144
    A = 160
    B = 176
    C = 192
    D = 208
    E = 224
    F = 240

    Second character of each of the colours represents:

    0 = 0
    1 = 1
    2 = 2
    3 = 3
    4 = 4
    5 = 5
    6 = 6
    7 = 7
    8 = 8
    9 = 9
    A = 10
    B = 11
    C = 12
    D = 13
    E = 14
    F = 15

    It makes your colour by putting however much red, green and blue "in the Mix"

    Hope this was helpful.

    If wrong correct me.
  • Felix
    21st Nov 2010 Member 0 Permalink
    What is the difference between a hex color and a normal color.
  • Dragonfree97
    21st Nov 2010 Member 0 Permalink
    Nothing. You just gotta write colors in hex in TPT.

    Green = 008000
    Blue = 000080
    Red = FF0000
    Yellow = FFFF00
    Black = 000000
    White = FFFFFF
    Brown = 8B4A00
  • Diissaster
    21st Nov 2010 Member 0 Permalink
    Hexadecimal is the main way to make colours in a lot of programming languages and is not so much a different colour as it is a more precise and accurate way to make a colour.
  • Felix
    21st Nov 2010 Member 0 Permalink
    No you don't have to write colors in hex in TPT. It is not more precise, not more accurate.
  • Diissaster
    21st Nov 2010 Member 0 Permalink
    [Messed up content delete comment]
  • Diissaster
    21st Nov 2010 Member 0 Permalink
    It messed up, mod please delete this comment and above
  • HeyJD
    21st Nov 2010 Member 0 Permalink
    Felix
    Well in html, CSS, it's best to use hex colours because it's more precise for the browsers need. If you just type 'colour:blue' it won't be the same in every browser. But if you type it in hex. Then you've got a precise colour for all browsers
  • Dragonfree97
    21st Nov 2010 Member 0 Permalink
    Felix:
    No you don't have to write colors in hex in TPT

    Nobody told me!
  • Diissaster
    21st Nov 2010 Member 0 Permalink
    As a suggestion, add hex colours in the source code so everyone has the same colour for stuff.