From e6606979ee4540102eadd6728d362ba8ae9196e1 Mon Sep 17 00:00:00 2001 From: czeppi Date: Sat, 25 Jan 2025 10:43:07 +0100 Subject: [PATCH] small refactoring --- apps/cc_clock24/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/cc_clock24/app.js b/apps/cc_clock24/app.js index 3c3ad17a0..945a1c4b4 100644 --- a/apps/cc_clock24/app.js +++ b/apps/cc_clock24/app.js @@ -168,11 +168,11 @@ const drawScale = function() { // draw the ticks of the scale for (let i = -14; i < 47; i++){ const alpha = i * 2 * Math.PI/60; - let d = 2; + let thickness = 2; if (i % 5 == 0) { - d = 5; + thickness = 5; } - g.fillPoly(calcHandPolygon(300, d, alpha), true); + g.fillPoly(calcHandPolygon(300, thickness, alpha), true); g.setColor(0, 0, 0); g.fillRect(10, 10, 2 * center.x - 10, 2 * center.x - 10); g.setColor(1, 1, 1);