additional commenting

This commit is contained in:
waltem01 2024-03-15 08:26:20 +01:00
parent b80596a181
commit 3dcba100fe

View File

@ -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