diff --git a/commands/edit-meme/crush.js b/commands/edit-meme/crush.js index 95c4d285..2d6ea616 100644 --- a/commands/edit-meme/crush.js +++ b/commands/edit-meme/crush.js @@ -45,10 +45,10 @@ module.exports = class CrushCommand extends Command { const ctx = canvas.getContext('2d'); ctx.fillStyle = 'white'; ctx.fillRect(0, 0, base.width, base.height); - ctx.rotate(3.79 * (Math.PI / 180)); + ctx.rotate(-3.79 * (Math.PI / 180)); const { x, y, width, height } = centerImagePart(data, 400, 400, 79, 472); ctx.drawImage(data, x, y, width, height); - ctx.rotate(-3.79 * (Math.PI / 180)); + ctx.rotate(3.79 * (Math.PI / 180)); ctx.drawImage(base, 0, 0); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'crush.png' }] }); } catch (err) {