This is just great, both, the artwork and the description on how you did it.
It is a completely new idea to me to involve programming in making gifs, especially using a command line. I am not very friendly with command lines, but I may try now, following your description and using the software you have linked to.
Thanks for sharing :)