tionFrame(createBarAnim(ctx))
      }
    }
    /**
     * 创建动画
     * @param {CanvasRenderingContext2D} ctx
     */
    function createCircleAnim(ctx) {
      /**
       * 通过闭包拿到 requestAnimationFrame 的时间
       * @param {number} time
       */
      return function (time) {
        const percent = calcPercent(time)
        ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height)
        ctx.fillStyle = textColor
        ctx.font = '24px Microsoft YaHei'
        ctx.fillText('环�