Created
May 28, 2013 17:36
-
-
Save edfuh/5664557 to your computer and use it in GitHub Desktop.
I use this a lot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rgbToHex (r, g, b) { | |
return [].slice.apply(arguments).map(function (n) { | |
return n.toString(16); | |
}).join('').toUpperCase(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment