1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 02:31:17 +02:00

Skin colour tweaks

This commit is contained in:
Toby Zerner
2015-05-02 08:29:43 +09:30
parent 74c145eb03
commit affebc2ca1
6 changed files with 26 additions and 25 deletions

View File

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