mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 00:12:32 +02:00
In between the two
This commit is contained in:
@@ -52,8 +52,8 @@ module.exports = class PetCommand extends Command {
|
|||||||
ctx.drawImage(frame, 0, 0);
|
ctx.drawImage(frame, 0, 0);
|
||||||
encoder.addFrame(ctx);
|
encoder.addFrame(ctx);
|
||||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||||
if (i + 1 > frameCount / 2) squish -= 5;
|
if (i + 1 > frameCount / 2) squish -= 4;
|
||||||
else squish += 5;
|
else squish += 4;
|
||||||
}
|
}
|
||||||
encoder.finish();
|
encoder.finish();
|
||||||
const buffer = await streamToArray(stream);
|
const buffer = await streamToArray(stream);
|
||||||
|
|||||||
Reference in New Issue
Block a user