Intermact API Reference / @intermact/react / exportCanvasGif
Function: exportCanvasGif()
exportCanvasGif(
canvas,player,options?):Promise<Blob>
Defined in: react/src/export/gif.ts:217
Deterministically export an animated GIF by seeking the player frame by frame, reading back the canvas pixels, and encoding (design.md §17). The canvas must be created with preserveDrawingBuffer: true for WebGL readback to work.
Parameters
canvas
HTMLCanvasElement
player
options?
ExportGifOptions = {}
Returns
Promise<Blob>