Commit 6ad9ca0d by doszhang

dos

parent 1e37f3cd
...@@ -322,7 +322,7 @@ function countDown() { ...@@ -322,7 +322,7 @@ function countDown() {
let timer; let timer;
countDownCtx.fillStyle = '#0f0'; countDownCtx.fillStyle = '#0f0';
timer = setInterval(function () { timer = setInterval(function () {
angle = ((angle * 10) - 36) / 10; // angle = ((angle * 10) - 36) / 10;
countDownCtx.clearRect(0, 0, countDownCanvas.width, countDownCanvas.height); countDownCtx.clearRect(0, 0, countDownCanvas.width, countDownCanvas.height);
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();
console.log(angle); console.log(angle);
......
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