Welcome to AnAnimLib

_images/Logo.gif

AnAnimLib was inspired by ManimLib by Grant Sanderson of 3Blue1Brown. The aim of AnAnimlib is to facilitate the creation of mathematically preceise animations through an intuitive and extensible API.

The following code spins a square it as it moves across the canvas.

 1import ananimlib as al
 2
 3rect = al.Rectangle([1,1])
 4
 5al.Animate(
 6    al.AddAnObject(rect),
 7    al.MoveTo(rect,[-3.0,0.0]),
 8    al.RunParallel(
 9        al.Move(rect, [6,0], duration=1.0),
10        al.Rotate(rect, 2*3.1415, duration=1.0),
11    ),
12    al.Wait(1.0)
13)
14        
15al.play_movie()
_images/quickstart_ex3.gif

See the Quickstart for a quick introduction.