Asymptote-based scientific animation
- Authors: Gevorkyan M.N.1, Korolkova A.V.1, Kulyabov D.S.1,2
-
Affiliations:
- RUDN University
- Joint Institute for Nuclear Research
- Issue: Vol 31, No 2 (2023)
- Pages: 139-149
- Section: Articles
- URL: https://journals.rcsi.science/2658-4670/article/view/315349
- DOI: https://doi.org/10.22363/2658-4670-2023-31-2-139-149
- EDN: https://elibrary.ru/XKNIYV
- ID: 315349
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.
Keywords
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 FederationAnna 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 FederationDmitry 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 FederationReferences
- 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
- J. C. Bowman, “Asymptote: Interactive TEX-aware 3D vector graphics,” TUGboat, vol. 31, no. 2, pp. 203-205, 2010.
- J. C. Bowman and A. Hammerlindl, “Asymptote: A vector graphics language,” TUGboat, vol. 29, no. 2, pp. 288-294, 2008.
- J. C. Bowman. “Asymptote: The Vector Graphics Language.” (May 2023), [Online]. Available: https://asymptote.sourceforge.io/.
- “TeX Live.” (2023), [Online]. Available: https://www.tug.org/texlive/.
- T. Tantau and H. Menke. “PGF/TikZ.” (2023), [Online]. Available: https://ctan.org/pkg/pgf.
- “ImageMagick.” (Jun. 12, 2020), [Online]. Available: https://imagemagick.org.
- S. Tomar, “Converting video formats with FFmpeg,” Linux Journal, vol. 2006, no. 146, p. 10, 2006.
- “FFmpeg Website.” (2023), [Online]. Available: https://ffmpeg.org/. [10] “Ghostscript Website.” (2023), [Online]. Available: https ://www.ghostscript.com/.
- 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
