From 920af3799a9ddfba024b06cc8e21c98261bcf660 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 10 Jun 2020 10:42:00 -0400 Subject: [PATCH] Fix --- commands/edit-meme/change-my-mind.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/edit-meme/change-my-mind.js b/commands/edit-meme/change-my-mind.js index 43bee961..69ed1fcc 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(6 * (Math.PI / 180)); + ctx.rotate(-6 * (Math.PI / 180)); ctx.font = '28px Noto'; let fontSize = 28; while (ctx.measureText(text).width > 309) { @@ -58,8 +58,8 @@ module.exports = class ChangeMyMindCommand extends Command { ctx.font = `${fontSize}px Noto`; } const lines = await wrapText(ctx, text, 206); - ctx.fillText(lines.join('\n'), 184, 253, 206); - ctx.rotate(-6 * (Math.PI / 180)); + ctx.fillText(lines.join('\n'), 184, 233, 206); + ctx.rotate(6 * (Math.PI / 180)); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'change-my-mind.png' }] }); } };