fix spacing in example
This commit is contained in:
parent
18a0a84b99
commit
51e560e497
12
readme.md
12
readme.md
|
@ -9,17 +9,17 @@ usage:
|
|||
```
|
||||
import (
|
||||
"log"
|
||||
"git.tuxpa.in/a/gotagonist/common/nori"
|
||||
"git.tuxpa.in/a/gotagonist/common/nori"
|
||||
)
|
||||
func main() {
|
||||
n, err := nori.FromFile(filename)
|
||||
if err != nil {
|
||||
log.Panicln("decode: %s", err)
|
||||
}
|
||||
n, err := nori.FromFile(filename)
|
||||
if err != nil {
|
||||
log.Panicln("decode: %s", err)
|
||||
}
|
||||
// uses apng encoder/decoder from https://gitlab.com/gfxlabs/gfximg
|
||||
animations, err := n.RenderAnimations(n)
|
||||
if err != nil {
|
||||
log.Panicln("render: %s", err)
|
||||
log.Panicln("render: %s", err)
|
||||
}
|
||||
// each animation has slice of frames
|
||||
// each frame contains an image.Image, if another format is needed
|
||||
|
|
Loading…
Reference in New Issue