From 8f28820452d62d3018478d71fea38f41f6889100 Mon Sep 17 00:00:00 2001 From: waltem01 Date: Fri, 8 Mar 2024 10:26:08 +0100 Subject: [PATCH] improved default values --- Webserver/src/routes/clock/+page.svelte | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Webserver/src/routes/clock/+page.svelte b/Webserver/src/routes/clock/+page.svelte index 41bdd05..73e9e1c 100644 --- a/Webserver/src/routes/clock/+page.svelte +++ b/Webserver/src/routes/clock/+page.svelte @@ -32,17 +32,18 @@ //.System variables const clock: Clock = { - body: 50, + body: 48, hands: { - minute: 45, + minute: 40, hour: 25 }, time: { minute: 0, hour: 0 }, - speed: 4 + speed: 0.4 }; + // Constant system values const TWO_PI = 2 * Math.PI; const HALF_PI = Math.PI / 2; @@ -93,7 +94,7 @@ x1="50" y1="50" x2={clock.positions?.minute.x ?? 50} - y2={clock.positions?.minute.y ?? 0} + y2={clock.positions?.minute.y ?? 50} stroke-width="1" /> @@ -102,7 +103,7 @@ x1="50" y1="50" x2={clock.positions?.hour.x ?? 50} - y2={clock.positions?.hour.y ?? 0} + y2={clock.positions?.hour.y ?? 50} stroke-width="2" />