Popularity
9.7
Growing
Activity
9.1
Declining
279
20
12

Monthly Downloads: 1,287
Programming language: Haskell
License: LicenseRef-PublicDomain
Tags: Graphics     Reanimate    
Latest version: v0.3.3.0
Add another 'reanimate' Package

README

Hackage Build Status Documentation Status Platforms GitHub repo size

Reanimate

Reanimate is a library for programmatically generating animations with a twist towards mathematics / 2D vector drawings. A lot of inspiration was drawn from 3b1b's manim library.

Reanimate aims at being a batteries-included way of gluing together different technologies: SVG as a universal image format, LaTeX for typesetting, ffmpeg for video encoding, inkscape/imagemagick for rasterization, potrace for vectorization, blender/povray for 3D graphics, and Haskell for scripting.

In more practical terms, reanimate is a library for turning code like this:

main = reanimate $ docEnv $ playThenReverseA drawCircle

... into animations like this:

[Draw Circle](examples/doc_playThenReverseA.hs)

What is reanimate good at?

Vector graphics and math

[Tangent/Normal](examples/demo_tangent.hs) [Fourier](examples/tut_glue_fourier.hs)

Mapping and tracing

[Geo JSON](videos/map-projection/gif.hs) [Object tracing](examples/tut_glue_potrace.hs)

Mathematical typesetting and effects

[LaTeX](examples/tut_glue_latex.hs) [Stars](examples/demo_stars.hs)

2D physics and 3D graphics

[2D Physics](examples/tut_glue_physics.hs) [3D graphics](examples/tut_glue_povray.hs)

Prerequisites

Reanimate is built using the Haskell Tool Stack. For installation instructions, see: https://docs.haskellstack.org/en/stable/README/

Optionally, you can install one or more of these programs to enable additional features:

I highly recommend that you install at least 'ffmpeg' and 'latex'.

Installing / Running an example

Reanimate ships with a web-based viewer and automatic code reloading. To get a small demo up and running, clone the repository, run one of the examples (this will install the library), and wait for a browser window to open:

$ git clone https://github.com/Lemmih/reanimate.git
$ cd reanimate/
$ stack build
$ stack ./examples/doc_drawCircle.hs

This should render the doc_drawCircle example in a new browser window. If you then change the animation source code, the browser window will automatically reload and show the updated animation.

Documentation

Authors

  • David Himmelstrup.
  • Jan Hrcek.

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

Acknowledgments

  • Huge thanks to 3b1b's manim which inspired this library.
  • Thanks to svg-tree for their SVG library.
  • Thanks to CthulhuDen/chiphunk for making a 2D physics library easily available.
  • Thanks to Peter Johnson for reserving the 'reanimate' organization on GitHub.

YouTube

Completed animations are uploaded to the Reanimated Science channel.

Animation snippets are uploaded to the Reanimated Science Shorts channel.


*Note that all licence references and agreements mentioned in the reanimate README section above are relevant to that project's source code only.