Ajout cercle progress

This commit is contained in:
telereview
2023-03-28 12:18:36 +02:00
parent ef2c3cdce4
commit 269402775d
6 changed files with 29 additions and 15 deletions

View File

@@ -127,7 +127,7 @@ class CameraPage {
this.ctx.strokeStyle = this.spinnerColor;
this.ctx.beginPath();
this.ctx.arc(x, y, radius, 0, progress * 2 * Math.PI);
this.ctx.arc(x + radius / 2, y + radius / 2, radius, 0, progress * 2 * Math.PI);
this.ctx.stroke();
}
@@ -150,4 +150,4 @@ class CameraPage {
reset() {
this.activeEffects = [];
}
}
}