🚀 tweak gif creation

This commit is contained in:
platane
2021-10-05 09:02:53 +02:00
committed by Platane
parent c2e503311a
commit c409c8cf1e

View File

@@ -44,7 +44,7 @@ export const createGif = async (
const grid = copyGrid(grid0);
const stack: Color[] = [];
const encoder = new GIFEncoder(width, height, "octree", false);
const encoder = new GIFEncoder(width, height, "neuquant", true);
encoder.setRepeat(0);
encoder.setDelay(gifOptions.frameDuration);
encoder.start();