Skip to content

Python framework to create animations like Mathologer or 3Blue1Brown

Notifications You must be signed in to change notification settings

pierrebai/MathAnim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maths Animation

This is a Python module to create animations of maths demonstrations as seen in the Mathologer YouTube channel.

The module defines an animation as a serie of shots containing actors and the movements of these actors. The playback is managed by an animator.

The actors are points, lines, circles, polygons, or any other objects. The geometric objects are defined by points and it is these points that are animated, moving the objects that uses them. This simplifies the animation of linked objects. For example a line drawn between two circle centers will move when the circles move.

Furthermore, points themselves can be defined relative to another point. That other point is called their origin. Such relative point move when their origin moves. This allows to create a hierarchy of points and complex animations.

The module provide ready-made simple animation formulas, for example to move a point or rotate it around another point.

In addition to the geometry, the module manages what gets drawn. Each actor is given a name. The decision to draw or not each actor is decided by an option linked to its name. All actors with the same name are controlled by the same option.

The overall demonstration can also define parameters that will automatically generate user-controllable options to modify them. For example, a demonstration involving a polygon could let the user choose the number of sides of the polygon.

Examples

The modules comes with many examples. Currently, there are Seven, but more will be added later. The examples are:

Aztec Circle

Based on this Mathologer video

Aztec Circle

Rotating Stars

Based on this Mathologer video

Rotating Stars

Geometric Sum of Quarters

Based on this Mathologer video

Quarter Sum

Vortex Maths

Based on this Mathologer video

Vortex Maths

Three Bisectors

Base on this Mathologer video

Three Bisectors

Pentagramaths

Base on this Mathologer video

Pentagramaths

Lonely Runner

Base on this Wikipedia page

Lonely Runner

About

Python framework to create animations like Mathologer or 3Blue1Brown

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages