Contrast reader (little JS tool I made)

Discussion in 'JavaScript' started by Randombase, Jun 26, 2008.

  1. #1
    I wondered how Google AdSense knows when to change the colour of the foreground text so it doesn't become invisible/hard to read, so made a little experiment to try it out myself. It has become a slightly different tool that tells you how readable your text is.

    Link:
    http://iron.randombase.com/colorchecker.html

    DP scores a "perfect" for readability:
    Foreground: #000000
    Background: #E4F5E7

    If you think it has completely failed at evaluating your colours, please post them here so I can finetune it a bit :).
     
    Randombase, Jun 26, 2008 IP
    wing likes this.
  2. GreatMetro

    GreatMetro Peon

    Messages:
    117
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Nice Job Randombase
     
    GreatMetro, Jul 4, 2008 IP
  3. wing

    wing Active Member

    Messages:
    210
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Good idea, really good :)
     
    wing, Jul 7, 2008 IP