From 3dcba100feb4ffb9a15d506c9ac445eade22b2a9 Mon Sep 17 00:00:00 2001 From: waltem01 Date: Fri, 15 Mar 2024 08:26:20 +0100 Subject: [PATCH] additional commenting --- Webserver/src/routes/clock/+page.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Webserver/src/routes/clock/+page.svelte b/Webserver/src/routes/clock/+page.svelte index c78aa20..340c4a5 100644 --- a/Webserver/src/routes/clock/+page.svelte +++ b/Webserver/src/routes/clock/+page.svelte @@ -143,15 +143,18 @@ // Array of instructions for drawing lines and shapes const instructions = [ + // Draw clock hands lineInstruction(middle.x, middle.y, clock.positions?.second!), lineInstruction(middle.x, middle.y, clock.positions?.minute!), lineInstruction(middle.x, middle.y, clock.positions?.hour!), + // Draw clock body { endpoint: 'circle', x: middle.x, y: middle.y, r: Math.floor((clock.body / 100) * matrix.height) } as CircleInstruction, + // Update matrix to display clock { endpoint: 'update' } as UpdateInstruction