mathematical animations with haskell https://reanimate.github.io
  • Haskell 95.8%
  • Elm 3.9%
  • Nix 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David Himmelstrup 23146429a5 Documentation. (#12)
* First docs.

* Docs requirements.

* Add auto-generated gallery and fix two bugs in the driver.

* Gallery: link directly to github.

* Tag examples as Haskell code.

* Update starting guide and redirect gallery links to master branch.

* Include link to readthedocs.


Former-commit-id: 90e846e5001deadd6c921f611c69b3a4210db30d
2019-09-19 16:52:34 +08:00
.azure Turn warnings into errors. 2019-09-17 18:47:31 +08:00
data Color space support (CIExyz, CIElab) 2019-09-01 12:42:56 +08:00
docs Documentation. (#12) 2019-09-19 16:52:34 +08:00
examples Set viewbox to 16 by 9. (#11) 2019-09-18 19:20:14 +08:00
src/Reanimate Documentation. (#12) 2019-09-19 16:52:34 +08:00
test Turn warnings into errors. 2019-09-17 18:47:31 +08:00
videos Add animation effects. (#9) 2019-09-17 18:21:52 +08:00
viewer Fix security warnings. 2019-09-13 18:46:30 +08:00
azure-pipelines.yml Fix azure formatting. 2019-09-17 10:04:23 +08:00
ChangeLog.md Bump version to 0.1.6.0 2019-09-14 17:46:03 +08:00
LICENSE Create LICENSE 2019-09-12 23:00:55 +08:00
mkdocs.yml Documentation. (#12) 2019-09-19 16:52:34 +08:00
README.md Documentation. (#12) 2019-09-19 16:52:34 +08:00
reanimate.cabal Set viewbox to 16 by 9. (#11) 2019-09-18 19:20:14 +08:00
Setup.hs First stab at reanimate. 2019-02-13 21:08:49 +01:00
stack-lts-11.yaml Azure pipeline builds on linux, mac, and windows, with lts-13, lts-12, and lts-11. (#6) 2019-09-14 17:35:01 +08:00
stack-lts-12.yaml Azure pipeline builds on linux, mac, and windows, with lts-13, lts-12, and lts-11. (#6) 2019-09-14 17:35:01 +08:00
stack.yaml Bump stack to lts-13.14. 2019-09-12 17:58:26 +08:00
stack.yaml.lock Add stack.yaml.lock 2019-09-11 21:42:45 +08:00

Hackage Build Status Documentation Status

reanimate

Reanimate is a reactive framework for creating non-interactive animations from SVG images. This package consists of a set of combinators, a renderer (using ffmpeg), and a web-based previewer. Inline latex code is supported when 'latex' and 'dvisvgm' are installed.

Nothing about the API is stable at this point.

YouTube

Completed animations are uploaded to the Reanimated Science channel.

Animation snippets are uploaded to the Reanimated Science Playground channel.

Getting started

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/latex_color.hs

This should render the latex_color 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.

TODO

  • Improve bounding box approximations
  • Alignment and positioning combinators
  • Figure out why performance doesn't scale linearly with more cores
    • diagrams are slow because they are rendered as a bytestring and then parsed as SVG. Find a way to shortcut.
  • Test-suite: Compile and render all the example animations on the build servers. The SVG output should be stable.
  • API for generating slides.
  • Warn if 'group' nodes are found in 'clippath's.
  • Optionally use gifski for high quality gifs: https://gif.ski/
  • Driver:
    • Flags for selecting fps in web viewer
    • Detect if there's already an open browser window. If there is, don't open another one.
    • Watch all code files in the same directory (and sub-directories) as the source code.
  • Viewer:
    • Keys for pausing, moving frame-by-frame, resetting.
  • Documentation:
    • Tutorials
      • Coordinate system
      • "Draw" effect
      • Pixel perfect povray (orthographic projection)
    • Gallery

Examples

The example gifs are displayed at 25 fps.

LaTeX wheel Sunflower Tangent Goo Drawing LaTeX equations Bounding boxes Colorful LaTeX Bezier curves Valentine's Day Basic LaTeX