From 66adae0db81ccfe6204c4a7a3d59cc3fa52866b2 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 10 Feb 2021 21:33:25 -0500 Subject: [PATCH] Fix --- commands/edit-avatar/eject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-avatar/eject.js b/commands/edit-avatar/eject.js index e0e0eec6..58437723 100644 --- a/commands/edit-avatar/eject.js +++ b/commands/edit-avatar/eject.js @@ -82,11 +82,11 @@ module.exports = class EjectCommand extends Command { const x = (320 / 10) * i; const y = (frame.height / 2) - 25; const angle = rotation * (Math.PI / 180); - ctx.rotate(angle); + ctx.rotate(-angle); const x2 = x + (x * Math.cos(angle)); const y2 = y + (x * Math.sin(angle)); ctx.drawImage(avatar, x2, y2, 50, 50); - ctx.rotate(-rotation * (Math.PI / 180)); + ctx.rotate(angle); } if (i > 10) { if (i <= 20) {