There is something i have been working on and it is trying to make the gif speed 30 fps, here is the code, i there a problem? const gif = new GIF({
workers: 2,
quality: 10,
workerScript: ‘gif.worker.js’,
repeat: 0
});
// Add a frame with a delay of 33ms (~30 FPS)
gif.addFrame(canvas, { delay: 33 });
// When finished, render the GIF
gif.on(‘finished’, function(blob) {
window.open(URL.createObjectURL(blob));
});
gif.render();