public/javascripts/yui/colorpicker/colorpicker.js
function(s) { 
            var f = this.hex2dec;
            return [f(s.slice(0, 2)), f(s.slice(2, 4)), f(s.slice(4, 6))];
        }
function(s) { 
            var f = this.hex2dec;
            return [f(s.slice(0, 2)), f(s.slice(2, 4)), f(s.slice(4, 6))];
        }
function ( s ) { var f = this . hex2dec ; return [ f ( s . slice ( 0 , 2 ) ) , f ( s . slice ( 2 , 4 ) ) , f ( s . slice ( 4 , 6 ) ) ] ; }
Converts a hex string to rgb
@method hex2rgb
@param str {string} the hex string
@return {[int, int, int]} an array containing the rgb values
Converts a hex string to rgb