Skip to main content

Kevin White

Member since Dec 11, 2008

Recent Blog Comments By Kevin White

  • Selecting Contrasting Text Color Based On Background Color

    Posted on Aug 13, 2007 at 11:39 AM

    @Ben I actually just used the PHP code as a jumping-off point. I built my function in CF. I'll spare you the details, but the real meat happens at the end: <cfset diff1 = Abs(baseR-Red1) + Abs(baseG-Green1) + Abs(baseBlue-Blue1)> <cfset diff2 = Abs(baseR-Red2) + Abs(baseG-Green2) + Abs(b... read more »

  • Selecting Contrasting Text Color Based On Background Color

    Posted on Aug 9, 2007 at 2:39 PM

    Interestingly enough, I had just finished building some code for this problem when I did my daily check of your web log. I started by looking at the functions (in PHP, but the theory still holds) here: http://www.ad7six.com/MiBlog/Contrast And that lead me to the W3.org's write-up at: http://ww... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel