Commit 6a66c488 by doszhang

dos

parent a4894d8d
...@@ -322,7 +322,7 @@ function countDown() { ...@@ -322,7 +322,7 @@ function countDown() {
let timer; let timer;
countDownCtx.fillStyle = bgColor; countDownCtx.fillStyle = bgColor;
timer = setInterval(function () { timer = setInterval(function () {
angle -= 3.6; angle = ((angle * 10) - 36) / 10;
countDownCtx.sector(countDownCanvas.width / 2, countDownCanvas.height / 2, countDownCanvas.width / 2, 0, angle).fill(); countDownCtx.sector(countDownCanvas.width / 2, countDownCanvas.height / 2, countDownCanvas.width / 2, 0, angle).fill();
if (angle <= 0) { if (angle <= 0) {
clearInterval(timer); clearInterval(timer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment