News for hackers. Stuff that matters.
Re:Manim: Animation engine for explanatory math videos by tikhonj on Thursday October 29, 2020 @02:42AM (#24927932)
If you like this, also check out the Haskell reanimate[1] library. It's a library for animated diagrams inspired by Manim but with a different API design and feature set.

Here's a snippet to trace out a rotating rectangle:

    do s <- fork $ newSpriteA drawBox
       v <- spriteVar s 0 rotate
       tweenVar v 2 $ \val -> fromToS val 90
The API docs[2] have a bunch of small examples like this illustrated with inline gifs, which I think is a great touch.

[1]: https://github.com/reanimate/reanimate

[2]: https://hackage.haskell.org/package/reanimate-1.1.2.1/docs/R...

Re:Manim: Animation engine for explanatory math videos by monkpit on Thursday October 29, 2020 @01:01PM (#24932596)
It’s too bad the gifs seem to be just file references instead of real-time animations. Looks like some of the code snippets do not match their animations.

For example, parLoopA and parDropA seem to have the same sample code, but have different animations.

Re:Manim: Animation engine for explanatory math videos by Lemmih on Friday October 30, 2020 @08:20AM (#24941451)
Good catch. Fixed in HEAD.
Re:Manim: Animation engine for explanatory math videos by jevgeni on Thursday October 29, 2020 @08:48AM (#24929911)
Thank you for the library tip!