mirror of
https://github.com/imjasonh/go-marvel
synced 2026-07-16 12:31:57 +00:00
generate gif in increasing order
This commit is contained in:
parent
dc64087920
commit
13f16dda48
2 changed files with 2 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ func writeGIF(filename string, imgs []image.Image) error {
|
|||
return err
|
||||
}
|
||||
g.Delay[i] = 0
|
||||
g.Image[i] = gimg.Image[0]
|
||||
g.Image[len(imgs)-i-1] = gimg.Image[0]
|
||||
}
|
||||
|
||||
return gif.EncodeAll(f, &g)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue