Using the geometry of confocal curves for passing through a door, implementation.

gifmaker.py 362B

123456789101112
  1. #!/usr/bin/env python
  2. import subprocess
  3. import os
  4. images_nb = [int(i.replace(".png", "").replace("tmp", ""))
  5. for i in os.listdir("out") if i.startswith("tmp")]
  6. images_nb.sort()
  7. subprocess.check_call(["convert", "-delay", "4", "-loop", "0"] +
  8. ["out/tmp"+str(i)+".png" for i in images_nb] +
  9. ["out.gif"])