trajan.animation.Animation.save#

animation.Animation.save(filename, fps=None)#

Save the animation to a file.

Parameters:
  • filename (str or Path) – Output file. Supported formats: .gif, .mp4.

  • fps (int, optional) – Frames per second; overrides any prior set_fps() call and triggers a rebuild.

Returns:

self