Commit 18f7ac62 by doszhang

dos

parent e1545114
......@@ -318,11 +318,11 @@ function showCountDownPage() {
}
function countDown() {
let angle = -104.4;
let angle = -360;
let timer;
countDownCtx.fillStyle = '#0f0';
countDownCtx.fillStyle = bgColor;
timer = setInterval(function () {
// angle = ((angle * 10) - 36) / 10;
angle = ((angle * 10) + 36) / 10;
countDownCtx.clearRect(0, 0, countDownCanvas.width, countDownCanvas.height);
countDownCtx.sector(countDownCanvas.width / 2, countDownCanvas.height / 2, countDownCanvas.width / 2, 0, angle).fill();
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