Documentation
¶
Overview ¶
Package gifenc assembles a sequence of still frames into an animated GIF. Each frame is independently quantized to its own ≤256-color palette (median cut) and dithered, then written as one image block.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encode ¶
Encode assembles frames into a single infinitely-looping animated GIF and returns its encoded bytes. Every frame must share the dimensions of frames[0] — the GIF canvas is fixed by the first image block, so a differently-sized frame cannot be represented without repositioning the whole animation.
Types ¶
Click to show internal directories.
Click to hide internal directories.