Animation

Animation

Source: save_animation_demo.f90

Generate an MP4 animation from a sequence of frames. The demo writes output/example/fortran/animation/animation.mp4.

save_animation also accepts a .txt filename to emit frames as ASCII renderings delimited by === Frame N === headers. Replay them in the terminal with the fortplot_play_ascii CLI app:

fpm run --target fortplot_play_ascii -- output.txt --fps 24 --loop

Files

  • save_animation_demo.f90 - Source code
  • Generated media in output/example/fortran/animation/

Running

make example ARGS="save_animation_demo"

Output

Animation

Download Video