This is a simple program that animates the Fourier series of some function. In this case, it is the Square Wave.
Below you can see the animation generated if you run the code as is.
To run it, it is quite simple. You can just download the contents of this repo and run on your favorite IDE/Editor or in terminal. The code will automatically create the folder which it will save all the images generated, and also delete it afterwards. If you want to keep the images, comment line 70 of the code.
To run it in terminal, just do
$ python fourier_gif.py
Or
$ python3 fourier_gif.py