Asymptote-based scientific animation

Cover Page

Cite item

Full Text

Abstract

This article discusses a universal way to create animation using Asymptote the language for vector graphics. The Asymptote language itself has a built-in library for creating animations, but its practical use is complicated by an extremely brief description in the official documentation and unstable execution of existing examples. The purpose of this article is to eliminate this gap. The method we describe is based on creating a PDF-file with frames using Asymptote, with further converting it into a set of PNG images and merging them into a video using FFmpeg. All stages are described in detail, which allows the reader to use the described method without being familiar with the used utilities.

About the authors

Migran N. Gevorkyan

RUDN University

Email: gevorkyan-mn@rudn.ru
ORCID iD: 0000-0002-4834-4895

Candidate of Sciences in Physics and Mathematics, Associate Professor of Department of Applied Probability and Informatics

6, Miklukho-Maklaya St., Moscow, 117198, Russian Federation

Anna V. Korolkova

RUDN University

Email: korolkova-av@rudn.ru
ORCID iD: 0000-0001-7141-7610

Candidate of Sciences in Physics and Mathematics, Associate Professor of Department of Applied Probability and Informatics

6, Miklukho-Maklaya St., Moscow, 117198, Russian Federation

Dmitry S. Kulyabov

RUDN University; Joint Institute for Nuclear Research

Author for correspondence.
Email: kulyabov-ds@rudn.ru
ORCID iD: 0000-0002-0877-7063

Doctor of Sciences in Physics and Mathematics, Professor of the Department of Applied Probability and Informatics of Peoples’ Friendship University of Russia named after Patrice Lumumba (RUDN University); Senior Researcher of Laboratory of Information Technologies, Joint Institute for Nuclear Research

6, Miklukho-Maklaya St., Moscow, 117198, Russian Federation; 6, Joliot-Curie St., Dubna, Moscow Region, 141980, Russian Federation

References

  1. O. Shardt and J. C. Bowman, “Surface parameterization of nonsimply connected planar Bézier regions,” Computer-Aided Design, vol. 44, no. 5, 484.e1-484.e10, May 2012. doi: 10.1016/j.cad.2011.05.010
  2. J. C. Bowman, “Asymptote: Interactive TEX-aware 3D vector graphics,” TUGboat, vol. 31, no. 2, pp. 203-205, 2010.
  3. J. C. Bowman and A. Hammerlindl, “Asymptote: A vector graphics language,” TUGboat, vol. 29, no. 2, pp. 288-294, 2008.
  4. J. C. Bowman. “Asymptote: The Vector Graphics Language.” (May 2023), [Online]. Available: https://asymptote.sourceforge.io/.
  5. “TeX Live.” (2023), [Online]. Available: https://www.tug.org/texlive/.
  6. T. Tantau and H. Menke. “PGF/TikZ.” (2023), [Online]. Available: https://ctan.org/pkg/pgf.
  7. “ImageMagick.” (Jun. 12, 2020), [Online]. Available: https://imagemagick.org.
  8. S. Tomar, “Converting video formats with FFmpeg,” Linux Journal, vol. 2006, no. 146, p. 10, 2006.
  9. “FFmpeg Website.” (2023), [Online]. Available: https://ffmpeg.org/. [10] “Ghostscript Website.” (2023), [Online]. Available: https ://www.ghostscript.com/.
  10. C. I. Staats. “An Asymptote tutorial.” (2015), [Online]. Available: https: //math.uchicago.edu/~cstaats/Charles_Staats_III/Notes_and_papers_files/asymptote_tutorial.pdf.

Supplementary files

Supplementary Files
Action
1. JATS XML