Brighten up avatar colors

This commit is contained in:
Toby Zerner 2015-03-12 13:05:34 +10:30
parent edac830371
commit cce21bb184
2 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@
float: left; float: left;
margin-left: -130px; margin-left: -130px;
border: 4px solid #fff; border: 4px solid #fff;
.box-shadow(0 2px 6px @fl-shadow-color);
} }
& .badges { & .badges {
margin-left: 10px; margin-left: 10px;

View File

@ -31,6 +31,6 @@ export default function(string) {
num += string.charCodeAt(i); num += string.charCodeAt(i);
} }
var hue = num % 360; var hue = num % 360;
var rgb = hsvToRgb(hue / 360, 100 / 255, 200 / 255); var rgb = hsvToRgb(hue / 360, 0.4, 0.9);
return ''+rgb.r.toString(16)+rgb.g.toString(16)+rgb.b.toString(16); return ''+rgb.r.toString(16)+rgb.g.toString(16)+rgb.b.toString(16);
}; };