From 0bd1957112062c7734361fa2dde4cd3d07f64c70 Mon Sep 17 00:00:00 2001 From: Kiyomichi Kosaka Date: Sat, 14 Jun 2025 23:56:31 +0200 Subject: [PATCH] Fix analog clock angle calculations --- clock.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/clock.js b/clock.js index 389fcb9..d1ce7d0 100644 --- a/clock.js +++ b/clock.js @@ -89,9 +89,10 @@ function updateClock() { const now = new Date(); const cob = toCobiets(now); - const xf = cob / COBIE_UNITS.quantic; - const qf = cob / COBIE_UNITS.chronon; - const cf = cob / COBIE_UNITS.eonstrip; + // Use fractional progress within each unit so angles stay small + const xf = (cob % COBIE_UNITS.quantic) / COBIE_UNITS.quantic; + const qf = (cob % COBIE_UNITS.chronon) / COBIE_UNITS.chronon; + const cf = (cob % COBIE_UNITS.eonstrip) / COBIE_UNITS.eonstrip; document.getElementById('handXeno').style.transform = `rotate(${xf * 360}deg)`; document.getElementById('handQuantic').style.transform = `rotate(${qf * 360}deg)`; document.getElementById('handChronon').style.transform = `rotate(${cf * 360}deg)`;