PymationsMaths animations in Python, drawn in your web browser

Every animation below is a short Python program, playing live in your browser with its code beside it. Pymations runs Manim Community scripts: the ones marked "Manim script" are unchanged. Pymations is an independent project, not affiliated with Manim.

pip install pymationsStar on GitHubDocsEdit and run one
Pythagoras

PythagorasManim script

The theorem shown by rearranging four right triangles in a square.

What is a derivative?

What is a derivative?Manim script

A secant line closing in on the tangent.

Sine from the unit circle

Sine from the unit circleManim script

A point going round the circle draws the sine wave.

Completing the square

Completing the squareManim script

The algebra, step by step, beside the picture.

Euler's identity

Euler's identityManim script

e to the i pi, one step at a time.

1 + 2 + ... + n

1 + 2 + ... + nManim script

Gauss's pairing trick for the sum of the first n numbers.

Sliding a tangent line

Sliding a tangent lineManim script

A tangent line slides along a curve, its slope shown as it goes.

Riemann sums

Riemann sumsManim script

Rectangles under a curve, getting thinner, closing in on the area.

A cycloid

A cycloidManim script

A point on a rolling wheel traces its path.

Moving the plane

Moving the planeManim script

The grid and the basis vectors moved together by a shear and a quarter turn.

Sine and cosine

Sine and cosineManim script

Two curves on one set of axes, with labels.

Moving the camera

Moving the cameraManim script

The camera frame zooms and moves over a grid.

A moving box

A moving boxManim script

A box that moves from one part of an equation to another.

Braces

BracesManim script

A brace and its label under a line.

Points on shapes

Points on shapesManim script

Dots placed on a circle, a square and a line.

Moving around

Moving aroundManim script

One square moved, recoloured, scaled and turned.

Equation steps

Equation steps

Solving 2x + 3 = 11, with matching parts moving into place.

Two scenes

Two scenes

Every Scene class in a file plays, in order.

With Pyctures

With Pyctures

A background drawn with ctx every frame, the animation on top.

Hello

Hello

The first scene: a square turned into a circle.