Link to OpenProcessing Project
It was actually quite difficult to create an animated gif through code because I was used to having a user’s input (like mouse, keys, etc) be the parameters for interaction and movement. However, with an animated gif, the main driver of movement is time, which got some getting used to. I wish that I made the animation more dynamic, but I realize that this animation is not supposed to take up a lot of time. I had a lot of other things on my plate, so I kept it simple. Since there is a 3 color limit, I think I should have chosen a different subject that is a bit more abstract rather than something that requires many different colors to understand what it is.
Here is my sketch before I made the animation: