Tweak the color hashing system
This commit is contained in:
parent
6d8ab212e0
commit
266eff4668
@ -96,7 +96,7 @@ function convertGraphData(rawData) {
|
||||
function stringToColor(base) {
|
||||
var hash;
|
||||
|
||||
for (var i = 0, hash = 0; i < base.length; i++) {
|
||||
for (var i = base.length - 1, hash = 0; i >= 0; i--) {
|
||||
hash = base.charCodeAt(i) + ((hash << 5) - hash);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user