Bit more squish in pet

This commit is contained in:
Dragon Fire
2021-01-09 15:58:58 -05:00
parent a0052cc3fc
commit d3a746847f
+2 -2
View File
@@ -52,8 +52,8 @@ module.exports = class PetCommand extends Command {
ctx.drawImage(frame, 0, 0);
encoder.addFrame(ctx);
ctx.clearRect(0, 0, canvas.width, canvas.height);
if (i + 1 > frameCount / 2) squish -= 3;
else squish += 3;
if (i + 1 > frameCount / 2) squish -= 5;
else squish += 5;
}
encoder.finish();
const buffer = await streamToArray(stream);