The site actually has some tutorials for creating these sorts of animations with a specific focus on perfectly looping gifs [1]. Looks like it's all done with Processing [2].
[0]: https://bleuje.com/tutorials/ [1]: https://processing.org/
[0]: https://bleuje.com/tutorials/ [1]: https://processing.org/