This file contains 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
/* colorConverter | |
* takes hex input (3 or 6 char) | |
* and return the RGB value as an | |
* object. | |
* Does not account for shitty inputs | |
* #f000 will result in some funky RGB | |
* | |
* Note: '#' in the hex string is optional | |
*/ | |
var colorConverter = function (h) { |