From 6e4e791ebceda74cb8153e24f1b0b351ea3b0f55 Mon Sep 17 00:00:00 2001 From: Yash Joshi Date: Mon, 11 Jan 2021 11:10:51 +0530 Subject: [PATCH] fix: typo in function name --- client/scripts/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/scripts/ui.js b/client/scripts/ui.js index 942c3b8..2bb47e9 100644 --- a/client/scripts/ui.js +++ b/client/scripts/ui.js @@ -578,7 +578,7 @@ Events.on('load', () => { } window.onresize = init; - function drawCicrle(radius) { + function drawCircle(radius) { ctx.beginPath(); let color = Math.round(255 * (1 - radius / Math.max(w, h))); ctx.strokeStyle = 'rgba(' + color + ',' + color + ',' + color + ',0.1)'; @@ -592,7 +592,7 @@ Events.on('load', () => { function drawCircles() { ctx.clearRect(0, 0, w, h); for (let i = 0; i < 8; i++) { - drawCicrle(dw * i + step % dw); + drawCircle(dw * i + step % dw); } step += 1; }