modules/orionode.collab.hub/client.js
function generateColorByName(str) {
    var hue = 0;
    for (var i = 0; i < str.length; i++) {
        hue = (hue * PRIME + str.charCodeAt(i)) % MASK;
    }
    hue = Math.floor(hue * PRIME) % MASK / MASK;
    var rgb = hslToRgb(hue, SATURATION, LIGHTNESS);
    return ('#' + rgb[0].toString(16) + rgb[1].toString(16) + rgb[2].toString(16)).toUpperCase();
}
function generateColorByName(str) {
    var hue = 0;
    for (var i = 0; i < str.length; i++) {
        hue = (hue * PRIME + str.charCodeAt(i)) % MASK;
    }
    hue = Math.floor(hue * PRIME) % MASK / MASK;
    var rgb = hslToRgb(hue, SATURATION, LIGHTNESS);
    return ('#' + rgb[0].toString(16) + rgb[1].toString(16) + rgb[2].toString(16)).toUpperCase();
}
function generateColorByName ( str ) { var hue = 0 ; for ( var i = 0 ; i < str . length ; i ++ ) { hue = ( hue * PRIME + str . charCodeAt ( i ) ) % MASK ; } hue = Math . floor ( hue * PRIME ) % MASK / MASK ; var rgb = hslToRgb ( hue , SATURATION , LIGHTNESS ) ; return ( '#' + rgb [ 0 ] . toString ( 16 ) + rgb [ 1 ] . toString ( 16 ) + rgb [ 2 ] . toString ( 16 ) ) . toUpperCase ( ) ; }
Generate an RGB value from a string

@param {string} str

@return {string} - RGB value
Generate an RGB value from a string