color.js
function(bytes) {
            bytes = bytes || 2;

            var max = Math.pow(16, bytes) - 1;
            var css = [
                "#",
                pad(Math.round(this.red * max).toString(16).toUpperCase(), bytes),
                pad(Math.round(this.green * max).toString(16).toUpperCase(), bytes),
                pad(Math.round(this.blue * max).toString(16).toUpperCase(), bytes)
            ];

            return css.join('');
        }
function(bytes) {
            bytes = bytes || 2;

            var max = Math.pow(16, bytes) - 1;
            var css = [
                "#",
                pad(Math.round(this.red * max).toString(16).toUpperCase(), bytes),
                pad(Math.round(this.green * max).toString(16).toUpperCase(), bytes),
                pad(Math.round(this.blue * max).toString(16).toUpperCase(), bytes)
            ];

            return css.join('');
        }
function ( bytes ) { bytes = bytes || 2 ; var max = Math . pow ( 16 , bytes ) - 1 ; var css = [ "#" , pad ( Math . round ( this . red * max ) . toString ( 16 ) . toUpperCase ( ) , bytes ) , pad ( Math . round ( this . green * max ) . toString ( 16 ) . toUpperCase ( ) , bytes ) , pad ( Math . round ( this . blue * max ) . toString ( 16 ) . toUpperCase ( ) , bytes ) ] ; return css . join ( '' ) ; }
convert to a CSS string. defaults to two bytes a value
convert to a CSS string . defaults to two bytes a value