Skip to content
forked from rxi/gifwriter

A Nim library for writing animated GIFs

License

Notifications You must be signed in to change notification settings

lineCode/gifwriter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Nim library for writing animated GIFs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 79.0%
  • Nim 21.0%