diff options
author | Martin Ashby <martin@martin-laptop.lan> | 2018-06-01 19:33:11 +0100 |
---|---|---|
committer | Martin Ashby <martin@martin-laptop.lan> | 2018-06-01 19:33:11 +0100 |
commit | 4a9b96e5cc8bf822bf3b2860b175f446cb45f98a (patch) | |
tree | cff24b438803874ae6704703461b71147125d454 /MakeGif.go | |
parent | 5afaaf0432d4c9b6c2d840492eff184af41c961e (diff) | |
download | unicornpaint-4a9b96e5cc8bf822bf3b2860b175f446cb45f98a.tar.gz unicornpaint-4a9b96e5cc8bf822bf3b2860b175f446cb45f98a.tar.bz2 unicornpaint-4a9b96e5cc8bf822bf3b2860b175f446cb45f98a.tar.xz unicornpaint-4a9b96e5cc8bf822bf3b2860b175f446cb45f98a.zip |
Implemented animated GIFs
Diffstat (limited to 'MakeGif.go')
-rw-r--r-- | MakeGif.go | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -91,8 +91,16 @@ func main() { Image: []*image.Paletted{im1, im2}, Delay: []int{50, 50}, // 100ths of a second } + // im := image.NewPaletted( + // image.Rect(0, 0, 16, 16), + // palette.WebSafe) - f1, err := os.Create("saves/rain.gif") + // gf := &gif.GIF{ + // Image: []*image.Paletted{im}, + // Delay: []int{100}, + // } + + f1, err := os.Create("saves/blank.gif") if err != nil { log.Fatalf("Error opening GIF file to write %v", err) } |