function stringToColor(s){
	var r = 0, i = 0, len = s.length;

	s = s.toLowerCase();

	for ( ; i < len; i++ ) {
		r += s.charCodeAt(i) * 900;
	}
	return 'hsla('+(r % 256)+',50%,40%,.5)';
}
/**
 * Will generate a random color from given string
 */
Will generate a random color from given string
Will generate a random color from given string
function stringToColor(s){
	var r = 0, i = 0, len = s.length;
	s = s.toLowerCase();
	for ( ; i < len; i++ ) {
		r += s.charCodeAt(i) * 900;
	}
	return 'hsla('+(r % 256)+',50%,40%,.5)';
}
function stringToColor ( s ) { var r = 0 , i = 0 , len = s . length ; s = s . toLowerCase ( ) ; for ( ; i < len ; i ++ ) { r += s . charCodeAt ( i ) * 900 ; } return 'hsla(' + ( r % 256 ) + ',50%,40%,.5)' ; }
Will generate a random color from given string
Will generate a random color from given string