Closed Lanchouchou closed 3 years ago
const gif = new GIF({ workers: 2, quality: 5, transparent: 0x00000000, workerScript: worker, }) and gif.addFrame(window.mo.canvas, { copy: true, delay: 1000 / 24, dispose: 0, }) this is an error result:
const gif = new GIF({ workers: 2, quality: 5, transparent: 0x00000000, workerScript: worker, })
gif.addFrame(window.mo.canvas, { copy: true, delay: 1000 / 24, dispose: 0, })
the correct background will be transparent,like this:
const gif = new GIF({ workers: 2, quality: 5, transparent: 0x00000000, workerScript: worker, })
andgif.addFrame(window.mo.canvas, { copy: true, delay: 1000 / 24, dispose: 0, })
this is an error result:the correct background will be transparent,like this: