Development PHP Color Chart :D:D

Discussion in 'Software' started by Bogomip, 17 Feb 2003.

  1. Bogomip

    Bogomip ... Yo Momma

    Joined:
    15 Jun 2002
    Posts:
    5,161
    Likes Received:
    39
  2. sheepgoat

    sheepgoat What's a Dremel?

    Joined:
    8 Nov 2001
    Posts:
    48
    Likes Received:
    0
    i love little scripts like that.
     
  3. Mr. Roboto

    Mr. Roboto xBurningMikex

    Joined:
    3 Dec 2002
    Posts:
    968
    Likes Received:
    0
    there are many possible hex colors.

    16^6

    16 to the 6th power would tell you all possible.
     
  4. sheepgoat

    sheepgoat What's a Dremel?

    Joined:
    8 Nov 2001
    Posts:
    48
    Likes Received:
    0
    16,777,216 possible hex colors to be exact
     
  5. Bogomip

    Bogomip ... Yo Momma

    Joined:
    15 Jun 2002
    Posts:
    5,161
    Likes Received:
    39
    hold on hold on... you mean you could have...

    #cd18ba

    and internet exporer would make it up ? it doesnt have to be

    #bbaacc

    i.e. 2 of the same, 2 of the same, 2 of the same ?? I didnt think They worked that way!
     
  6. complexprocess

    complexprocess What's a Dremel?

    Joined:
    8 Jul 2002
    Posts:
    353
    Likes Received:
    0
    Yeah, it can be 6 different characters. Each number of each pair controls either "hue" or "tint" as I recall (I think that's the order, as well, but don't quote me.) However, you would be hard pressed to tell the difference between #996633 and #986633 or any other very similar combos. Once you get in to differences of 5 or so (#996633 versus #9433) you can start to notice it at a glance, but even then the difference really is too small to be practical.

    As an example, paste this code into a file and slowly change the color of the second cell by one unit in the second part of a pair (in #986633 you might try lowering the 8) until you can really see the line between the two without staring to hard. Read that again and it will make sense. :D
    Here's the code:
    PHP:
    <table border="0" cellspacing="0">
        <
    tr>
            <
    td width="100" bgcolor="#996633">
                &
    nbsp;
            </
    td>
            <
    td width="100" bgcolor="#986633">
                &
    nbsp;
            </
    td>
        </
    tr>
    </
    table>
    P.S. please forgive my choice of colors. I typed them in before I thought about what they would look like and was too lazy to change them.
     
  7. Bogomip

    Bogomip ... Yo Momma

    Joined:
    15 Jun 2002
    Posts:
    5,161
    Likes Received:
    39
    i dont care about how small the change is :) i want all the colors ever :D the coding is simple, the browser tryign to recreate it all, is less simple :)
     
  8. eaterofpies

    eaterofpies What's a Dremel?

    Joined:
    12 Feb 2002
    Posts:
    1,745
    Likes Received:
    0
  9. djengiz

    djengiz Pointless.

    Joined:
    16 Aug 2002
    Posts:
    1,129
    Likes Received:
    0
    pwitty!
     

Share This Page