Discrete and Continuous Models and Applied Computational Science (Dec 2023)

Asymptote-based scientific animation

  • Migran N. Gevorkyan,
  • Anna V. Korolkova,
  • Dmitry S. Kulyabov

DOI
https://doi.org/10.22363/2658-4670-2023-31-2-139-149
Journal volume & issue
Vol. 31, no. 2
pp. 139 – 149

Abstract

Read online

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