Updated README

This commit is contained in:
Alex Eidt 2022-04-16 11:28:07 -07:00
parent e8ea1b458f
commit 1c933691ff

View file

@ -176,7 +176,7 @@ Create a gif from a series of `png` files enumerated from 1 to 10 that loops con
```go ```go
w, h, _ := vidio.Read("1.png") // Get frame dimensions from first image w, h, _ := vidio.Read("1.png") // Get frame dimensions from first image
options := vidio.Options{FPS: 1, Loop: -1, Delay: 1000} options := vidio.Options{FPS: 1, Loop: 0, Delay: 1000}
gif := vidio.NewVideoWriter("output.gif", w, h, &options) gif := vidio.NewVideoWriter("output.gif", w, h, &options)
defer gif.Close() defer gif.Close()