gifwriter
Animated GIF writing library based on jo_gif
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Passing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install gifwriter
choosenim install gifwriter
git clone https://github.com/rxi/gifwriter
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| gifwriter | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/rxi/gifwriter |
|---|---|
| Homepage | https://github.com/rxi/gifwriter |
| Documentation | View Documentation |
| Registry Source | nimble_official |
README
gifwriter
A Nim library for writing animated GIFs, based on jo_gif.
Basic Usage
import gifwriter
var
gif = newGif("out.gif", 128, 128, fps=24)
pixels = newSeq[Color](128 * 128)
for frame in 0..<64:
for i in 0..<pixels.len:
pixels[i].r = uint8(frame * 4 + i * 2)
pixels[i].g = uint8(frame * 4 + i div 64)
pixels[i].b = uint8(frame * 4 + i * 4)
gif.write(pixels)
gif.close()
License
This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details.