fix: typo in function name

This commit is contained in:
Yash Joshi 2021-01-11 11:10:51 +05:30 committed by GitHub
parent 0724487132
commit 6e4e791ebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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