From f816c1ee64f63b6f20b8562e577778ad4719cdc3 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 31 Jan 2018 20:20:33 +0000 Subject: [PATCH] Fix --- commands/search/periodic-table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/periodic-table.js b/commands/search/periodic-table.js index 8ba38707..a39f9c7e 100644 --- a/commands/search/periodic-table.js +++ b/commands/search/periodic-table.js @@ -49,12 +49,12 @@ module.exports = class PeriodicTableCommand extends Command { ctx.fillRect(0, 0, canvas.width, canvas.height); ctx.fillStyle = 'white'; ctx.fillRect(10, 10, canvas.width - 20, canvas.height - 20); + ctx.textAlign = 'center'; if (element.number === 0) { const batman = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'batman.png')); ctx.drawImage(batman, 100, 166); } else { ctx.font = '210px Noto'; - ctx.textAlign = 'center'; ctx.fillStyle = colors[element.phase]; ctx.fillText(element.symbol, 250, 320); }