
     * @param {CanvasRenderingContext2D} ctx
     * @param {number} percent
     */
    function drawBar(ctx, percent) {
      ctx.strokeStyle = barColor
      ctx.strokeRect(MARGIN, MARGIN, barWidth, barHeight)
      ctx.fillStyle = barColor
      ctx.fillRect(
        MARGIN,
        MARGIN,
        (barWidth / 100) * Math.floor(percent),
        barHeight,
      )
      // 文字进度
      ctx.fillStyle = textColor
      ctx.font = '48px Microsoft YaHei'
      /**
       * @see https://www.twle.cn/l/y