This is the companion repository for the blog post at makeartwithpython.com.
$ python3 slitscan-gif.py INPUT.MP4
To generate a gif like this:
Or, generate a single image using:
$ python3 slitscan-image.py INPUT.MP4
...and you'll get an image like this:
See the full post at https://www.makeartwithpython.com/blog/creating-slit-scan-images-in-python-and-moviepy/