I got it working with
I did some refactoring to change the t to an integer frame parameters. Then ran the gif generator at 30fps for 1 second starting at t =0 to t =30 (so the t sweeps integer values)
you will need to fiddle with the params a bit but its definitely feasible.