From d1732943c2c34cbcb49fdf122a07afa340cf3fa2 Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Wed, 7 Oct 2026 07:53:11 +0200 Subject: [PATCH] Rotate RPG clock 90deg counter-clockwise (9:00 at bottom) --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 5cfc0b5..68dfe49 100644 --- a/index.html +++ b/index.html @@ -338,8 +338,8 @@ } function angleForTime(date) { - // 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; + // Rotate so 9:00 real = bottom (0°), 15:00 = right (90°), 21:00 = top (180°), 3:00 = left (270°) + var hours = (date.getHours() + date.getMinutes() / 60 - 9 + 24) % 24; return ((hours / 24) * 360 - 90) * Math.PI / 180; }