From e780d578431a073143363356c51378e367f45394 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 29 Nov 2020 09:33:21 -0500 Subject: [PATCH] Fix --- commands/edit-meme/change-my-mind.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-meme/change-my-mind.js b/commands/edit-meme/change-my-mind.js index a402bc53..d64a8493 100644 --- a/commands/edit-meme/change-my-mind.js +++ b/commands/edit-meme/change-my-mind.js @@ -50,7 +50,7 @@ module.exports = class ChangeMyMindCommand extends Command { const ctx = canvas.getContext('2d'); ctx.textBaseline = 'top'; ctx.drawImage(base, 0, 0); - ctx.rotate(24 * (Math.PI / 180)); + ctx.rotate(-24 * (Math.PI / 180)); ctx.font = '35px Noto'; let fontSize = 35; while (ctx.measureText(text).width > 506) { @@ -59,7 +59,7 @@ module.exports = class ChangeMyMindCommand extends Command { } const lines = await wrapText(ctx, text, 337); ctx.fillText(lines.join('\n'), 142, 430, 337); - ctx.rotate(-24 * (Math.PI / 180)); + ctx.rotate(24 * (Math.PI / 180)); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'change-my-mind.png' }] }); } };