Commit 18f7ac62 by doszhang

dos

parent e1545114
...@@ -318,11 +318,11 @@ function showCountDownPage() { ...@@ -318,11 +318,11 @@ function showCountDownPage() {
} }
function countDown() { function countDown() {
let angle = -104.4; let angle = -360;
let timer; let timer;
countDownCtx.fillStyle = '#0f0'; countDownCtx.fillStyle = bgColor;
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