From 59f76ed89a802dae155808d06b85631ec194446e Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 1 Jul 2020 11:44:40 -0400 Subject: [PATCH] Fix --- commands/edit-meme/spiderman-pointing.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-meme/spiderman-pointing.js b/commands/edit-meme/spiderman-pointing.js index 275bef55..ae5be7c7 100644 --- a/commands/edit-meme/spiderman-pointing.js +++ b/commands/edit-meme/spiderman-pointing.js @@ -85,11 +85,11 @@ module.exports = class SpidermanPointingCommand extends Command { ctx.font = `${fontSize}px Noto`; } const lines2 = await wrapText(ctx, second, 290); - const topMost = 190 - (((fontSize * lines2.length) / 2) + ((10 * (lines2.length - 1)) / 2)); + const topMost2 = 190 - (((fontSize * lines2.length) / 2) + ((10 * (lines2.length - 1)) / 2)); for (let i = 0; i < lines2.length; i++) { ctx.strokeStyle = 'black'; ctx.lineWidth = 5; - const height = topMost + ((fontSize + 10) * i); + const height = topMost2 + ((fontSize + 10) * i); ctx.strokeText(lines2[i], 596, height); ctx.fillText(lines2[i], 596, height); }