From 96acd4a8c5c42bc3b189e63515d5bd06c5de52ac Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Wed, 26 May 2021 01:08:15 +0200 Subject: [PATCH] Centering --- create-card.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/create-card.js b/create-card.js index a2cfc82..904663e 100644 --- a/create-card.js +++ b/create-card.js @@ -172,14 +172,14 @@ class CardCreator { const mountsMeasure = ctx.measureText(`${mountsPct}%`); const minionsMeasure = ctx.measureText(`${minionsPct}%`); - ctx.fillText(`${mountsPct}%`, 480, 162); - ctx.fillText(`${minionsPct}%`, 685, 162); + ctx.fillText(`${mountsPct}%`, 480, 163); + ctx.fillText(`${minionsPct}%`, 685, 163); ctx.fillStyle = grey; ctx.font = small; - ctx.fillText("Mounts", 480 + mountsMeasure.width + 5, 162); - ctx.fillText("Minions", 685 + minionsMeasure.width + 5, 162); + ctx.fillText("Mounts", 480 + mountsMeasure.width + 5, 163); + ctx.fillText("Minions", 685 + minionsMeasure.width + 5, 163); ctx.drawImage(this.imgMount, 620, 140, 32, 32); ctx.drawImage(this.imgMinion, 834, 140, 19, 32);