The delay for this frame in units of 10ms (e.g., a value of 10
equals 100ms).
How the current frame should be disposed of when moving to the next one.
Height of the frame.
True if the image is interlaced.
The horizontal offset of the frame relative to the left of the canvas.
Indicates whether this frame requires user input to proceed.
The vertical offset of the frame relative to the top of the canvas.
Optional
transparentAn optional index of a transparent color in the palette.
Width of the frame.
The buffer of this frame.
The frame's palette.
Sets the frame's palette.
Optional
val: null | Uint8Array<ArrayBufferLike>Static
fromCreates a frame from hex pixel data.
buffer
should match the expected size based on width
, height
.Optional
speed: null | numberStatic
fromCreates a frame from indexed pixel data.
buffer
should match the expected size based on width
, height
.Optional
palette: null | Uint8Array<ArrayBufferLike>Optional
transparent: null | numberStatic
fromCreates a frame from RGB pixel data.
buffer
should match the expected size based on width
, height
.Optional
speed: null | numberStatic
fromCreates a frame from RGBA pixel data.
buffer
should match the expected size based on width
, height
.Optional
speed: null | number
A GIF frame.