From bebc2daa95866c923dbd01d0a250b1107c7b5387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=AA=E3=82=AD=E8=90=8C?= Date: Thu, 26 Jun 2025 18:48:16 +0200 Subject: [PATCH] alter color selection algorithm it should be more fair i think. maybe --- static/reticle-renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/reticle-renderer.js b/static/reticle-renderer.js index 2a1ba9d..595a52c 100644 --- a/static/reticle-renderer.js +++ b/static/reticle-renderer.js @@ -34,7 +34,7 @@ export class ReticleCursor extends Reticle { hash = (hash << 5) - hash + this.nickname.charCodeAt(i); hash |= 0; } - return `oklch(65% 0.2 ${(hash / 0xffff) * 360}deg)`; + return `oklch(65% 0.2 ${(hash / 0x7fffffff) * 360}deg)`; } setCursor(x, y) {