summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2023-07-02 11:39:37 +0000
committerRuben Beltran del Rio <ruben@unlimited.pizza>2023-07-02 11:39:37 +0000
commit226ad561a01402590ebf3fa61912fd5d8f93f632 (patch)
tree598e15bbd557f33572695eb1586ba9fbb03c88ad /lib
parent5838e9190b314cd8511ac2e0ed703e2c4b3076ed (diff)
Use let instead of const for circle
Diffstat (limited to 'lib')
-rw-r--r--lib/screens/circle.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/screens/circle.js b/lib/screens/circle.js
index 720e250..2c9a0bd 100644
--- a/lib/screens/circle.js
+++ b/lib/screens/circle.js
@@ -26,7 +26,7 @@ module.exports = function (modulation, width, height, renderer) {
const y = Math.round(centerY + Math.cos(angle) * i);
if (x <= width && x > 0 && y <= height && y > 0) {
- const position = `\x1B[${y};${x}H`; // Move cursor to y,x (CSI y;x H)
+ let position = `\x1B[${y};${x}H`; // Move cursor to y,x (CSI y;x H)
response += `${position}${renderer(red, blue, green)} `;
}
}