This commit is contained in:
Maciej Caderek
2022-01-30 05:04:17 +01:00
parent a7c2d09c96
commit 3023329586
19 changed files with 4431 additions and 274 deletions

View File

@@ -29,7 +29,9 @@ class GIF {
frames: number
) {
this.gif.addFrame(frame, { delay: frames * this.frameTime });
while (frames--) {
this.gif.addFrame(frame, { delay: this.frameTime });
}
}
render(): Promise<File> {

View File

@@ -33,7 +33,7 @@ const createAnimation = async (
board.render();
// @ts-ignore
await encoder.add(getData(board, encoder), 5);
await encoder.add(getData(board, encoder), 4);
await board.frame(game.getBoardData(), header, null, game.materialInfo());
board.render();