From 79ceaa16739c3d7eebdf15a95f9aae4f575557e2 Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Wed, 7 Oct 2026 07:52:24 +0200 Subject: [PATCH] =?UTF-8?q?Rotate=20RPG=20clock:=206:00=20real=20at=20bott?= =?UTF-8?q?om=20(0=C2=B0),=20midnight=20at=20left?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 5883d91..5cfc0b5 100644 --- a/index.html +++ b/index.html @@ -338,7 +338,8 @@ } function angleForTime(date) { - var hours = date.getHours() + date.getMinutes() / 60; + // Rotate so 6:00 real = bottom (0°), 12:00 = right (90°), 18:00 = top (180°), 0:00 = left (270°) + var hours = (date.getHours() + date.getMinutes() / 60 - 6 + 24) % 24; return ((hours / 24) * 360 - 90) * Math.PI / 180; }