mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 10:30:17 +01:00
Ajout cercle progress
This commit is contained in:
@@ -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 = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user