From 892d328143d2d001622b199272f2b1b7830f4fc4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 21 Feb 2021 12:47:41 -0500 Subject: [PATCH] Also squish pet on x axis --- commands/edit-image/pet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image/pet.js b/commands/edit-image/pet.js index e696a9e7..f731c409 100644 --- a/commands/edit-image/pet.js +++ b/commands/edit-image/pet.js @@ -48,7 +48,7 @@ module.exports = class PetCommand extends Command { const frameID = `frame_${i.toString().padStart(2, '0')}.png`; const frame = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'pet', frameID)); const { x, y, width, height } = centerImagePart(data, 75, 75, 27, 38); - ctx.drawImage(data, x, y + squish, width, height - squish); + ctx.drawImage(data, x - squish, y + squish, width + squish, height - squish); ctx.drawImage(frame, 0, 0); encoder.addFrame(ctx); ctx.clearRect(0, 0, canvas.width, canvas.height);