Processing sketch for creating an animated GIF displaying before and after changes to an image