From 3db97375e6edc405a133ef1d5964df3035b8f930 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 May 2020 23:24:13 -0400 Subject: [PATCH] Fix --- commands/edit-image/spongebob-time-card.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-image/spongebob-time-card.js b/commands/edit-image/spongebob-time-card.js index d9008f89..c134ad22 100644 --- a/commands/edit-image/spongebob-time-card.js +++ b/commands/edit-image/spongebob-time-card.js @@ -58,12 +58,12 @@ module.exports = class SpongebobTimeCardCommand extends Command { ctx.textAlign = 'center'; ctx.textBaseline = 'top'; ctx.font = '115px Spongeboytt1'; - const lines = await wrapText(ctx, text.toUpperCase(), 813); + const lines = await wrapText(ctx, text.toUpperCase(), 1800); const topMost = (canvas.height / 2) - (((115 * lines.length) / 2) + ((60 * (lines.length - 1)) / 2)); for (let i = 0; i < lines.length; i++) { const height = topMost + ((115 + 60) * i); ctx.fillStyle = '#ecbd3b'; - ctx.fillText(lines[i], (canvas.width / 2) - 10, height - 10); + ctx.fillText(lines[i], (canvas.width / 2) + 6, height + 6); ctx.fillStyle = 'black'; ctx.fillText(lines[i], canvas.width / 2, height); }