Grey Hats

Home of Borked Cast, also Jon writes things here sometimes

Skip to content
  • Home
  • Borked Podcast
  • About Jon
  • David Blogs

oh my little rgb to hex function

May 30, 2007JavaScript, Programming, SnippetJon Mabe

how I love you

function rgb(r,g,b){
return r.toString(16) + g.toString(16) + b.toString(16);
}

Post navigation

← Why my Xbox 360 support has sucked Safari 3 … wtf? →

Follow Us

Follow @jonathanmabe Follow @cdeagle

We Use StackExchange

profile for Revoked on Stack Exchange, a network of free, community-driven Q&A sites

Recent Posts

  • Social on Snooze
  • Not a review of XCOM: Enemy Unkown
  • Three Months with Seoul, or How I Fell in Love with iPhone Again
  • Software is Emo
  • Why RSS (aka “non-social syndication”) is better & here to stay

Pages

  • Borked Podcast

Categories

  • Gaming (22)
  • General (12)
  • JavaScript (2)
  • Movie (1)
  • Music (1)
  • Podcasting (21)
  • Political (1)
  • Programming (6)
  • Snippet (1)
  • Tech (22)

Search

Blogroll

  • Daisy at Home, Culinary Cuteness
  • David Eagle
  • Elyse Anne Maria
  • Jenn's Dreams

Archives

  • June 2013
  • January 2013
  • September 2012
  • January 2011
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • April 2008
  • March 2008
  • January 2008
  • December 2007
  • November 2007
  • May 2007
  • December 2006
  • November 2006
  • October 2006
  • August 2006
  • July 2006
  • May 2006
  • April 2006
Proudly powered by WordPress