HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Reading

Writing

typetype GifDelay = Int

Delay to wait before showing the next Gif image. The delay is expressed in 100th of seconds.

Encode a complex gif to a bytestring.

  • There must be at least one image.

  • The screen and every frame dimensions must be between 1 and 65535.

  • Every frame image must fit within the screen bounds.

  • Every palette must have between one and 256 colors.

  • There must be a global palette or every image must have a local palette.

  • The background color index must be present in the global palette.

  • Every frame's transparent color index, if set, must be present in the palette used by that frame.

  • Every color index used in an image must be present in the palette used by that frame.