go-gif-animation

module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2021 License: MIT

README

go-gif-animation

Install

go get github.com/fktym/[email protected]

Usage

// create param
p := CreateAnimationParam{
	Frames: []CreateFrameParam{
		{URI: "../../test/data/G.png", Delay: 100},
		{URI: "../../test/data/O.png", Delay: 100},
		{URI: "../../test/data/P.png", Delay: 100},
		{URI: "../../test/data/H.png", Delay: 100},
		{URI: "../../test/data/E.png", Delay: 100},
		{URI: "../../test/data/R.png", Delay: 100},
	},
}

// create
data, err := Create(p)
if err != nil { // handle error
	panic(err)
}

// save data
err = ioutil.WriteFile("../../test/out/TestCreate.gif", data, 0644)
if err != nil {
	panic(err)
}

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL