Categorygithub.com/aerth/spriteutil
modulepackage
0.0.1
Repository: https://github.com/aerth/spriteutil.git
Documentation: pkg.go.dev

# README

spriteutil

Just a few things for use with faiface/pixel 2D library

Animated GIF in Pixel

Using github.com/faiface/pixel we can display animated GIF images!

import (
    "github.com/aerth/spriteutil"
)

func run(){
// ...
sprite, err := spriteutil.LoadGif(file)
if err != nil { return err }
sprite.Update(dt)
sprite.Draw(win, pixel.IM)
// ...
}

Image/Font Credits:

# Functions

LoadGif returns an AnimatedSprite.
No description provided by the author

# Structs

AnimatedSprite holds gif frames and manages timing.