alter color selection algorithm

it should be more fair i think. maybe
This commit is contained in:
りき萌 2025-06-26 18:48:16 +02:00
parent d445eb9915
commit bebc2daa95

View file

@ -34,7 +34,7 @@ export class ReticleCursor extends Reticle {
hash = (hash << 5) - hash + this.nickname.charCodeAt(i); hash = (hash << 5) - hash + this.nickname.charCodeAt(i);
hash |= 0; hash |= 0;
} }
return `oklch(65% 0.2 ${(hash / 0xffff) * 360}deg)`; return `oklch(65% 0.2 ${(hash / 0x7fffffff) * 360}deg)`;
} }
setCursor(x, y) { setCursor(x, y) {