Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at the jQuery Conference 2010 (Boston, MA) with:

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 »