aboutsummaryrefslogtreecommitdiff
path: root/MakeGif.go
diff options
context:
space:
mode:
authorMartin Ashby <martin@martin-laptop.lan>2018-06-01 19:33:11 +0100
committerMartin Ashby <martin@martin-laptop.lan>2018-06-01 19:33:11 +0100
commit4a9b96e5cc8bf822bf3b2860b175f446cb45f98a (patch)
treecff24b438803874ae6704703461b71147125d454 /MakeGif.go
parent5afaaf0432d4c9b6c2d840492eff184af41c961e (diff)
downloadunicornpaint-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.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/MakeGif.go b/MakeGif.go
index 8b651ea..1c8ddf8 100644
--- a/MakeGif.go
+++ b/MakeGif.go
@@ -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)
}