From 056a2e63fcf0b731ea5cbcd382d3f97d661da26c Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Wed, 7 Oct 2026 07:55:29 +0200 Subject: [PATCH] Reset RPG clock orientation: 0:00 bottom, 12:00 top --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 68dfe49..b9f7a75 100644 --- a/index.html +++ b/index.html @@ -338,8 +338,8 @@ } function angleForTime(date) { - // 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; + // 0:00 = bottom (-90°), 12:00 = top (90°), 24:00 = bottom (-90°) + var hours = date.getHours() + date.getMinutes() / 60; return ((hours / 24) * 360 - 90) * Math.PI / 180; }