Description
Morpho is a Python library for programmatic animation. You describe figures and how they move in code, and the library handles drawing, tweening and export. It can animate basic figures such as points, paths, polygons, splines, images and text, and it includes helpers for composite figures such as grids and tools for building custom figures. Animations can use multiple layers, each with its own dynamic camera, and a layer can act as a mask for another. The library supports color gradients as fills and along paths, custom tweens, transformations for building repeating patterns, and some basic 3D animation. It can render and animate LaTeX when a LaTeX distribution and dvisvgm are installed. You can preview animations and click on screen to find positions, then export them as MP4, WEBP, GIF or PNG sequences at any framerate and resolution. It runs on Python 3.8 or later and needs Pycairo. Some export formats also need FFmpeg, Gifsicle or img2webp.…
Highlights
- Animate points, paths, polygons, splines, images and text
- Layers with independent dynamic cameras and masking
- LaTeX rendering and animation
- Export MP4, WEBP, GIF and PNG sequences
- Custom tweens, gradients and 3D basics
Ratings & Reviews
No ratings yet
Be the first to rate Morpholib.
People also visit
Morpholib FAQ
What is Morpho?
Morpho is a Python library for making animations in code. You build figures, set how they move, and export the result as a video or an image sequence.
Which Python version do I need?
Python 3.8 or higher, plus Pycairo. On Windows, the README says Morpho and its basic dependencies, Pycairo included, should install with a single pip command.
What do I need for video export?
FFmpeg for MP4 files, Gifsicle for small GIFs and img2webp for WEBP files. PNG sequences do not need any of these.
Can I put LaTeX in animations?
Yes. Install a LaTeX distribution and dvisvgm on your system, and Morpho can render and animate LaTeX.
Where can I learn it?
The project has a gallery of animations, a few guides and a Discussions page for questions. The author says the documentation is limited.
What are the best Morpholib alternatives?
Popular alternatives to Morpholib include Animation, Luxor.jl and Remotion Animated. See all Morpholib alternatives




