Algan v0.0.0
Algan is a full-featured 2D/3D programmatic animation engine for explanatory
mathematics and technical videos — a successor to Manim with GPU ray
tracing. This is its first release on PyPI.
pip install alganSee the Installation guide
for installing optional extras and help fixing installation problems.
What's in it
- Manim feature parity — the mobs, animations and authoring style you
already know. - GPU ray tracing — depth of field, area lights, glossy reflections,
refractive glass, soft shadows, custom shaders. - Declarative timeline contexts —
Seq(),Sync(),Lag(),Off()and
Speech()blocks, so animation code is modular and re-usable. - Unified 2D/3D geometry — morph and interpolate between 2D Bézier circuits
and 3D meshes withbecome(). - Audio and speech alignment — word-level forced alignment to synchronise
animation with narration. - An interactive viewer —
Scene.view()serves a local page that plays the
scene, shows the mob hierarchy and attributes at the playhead, and reports the
depth-sorted fragment list behind any pixel.
Requirements
Python 3.10–3.13, on:
| Platform | Requirement |
|---|---|
| Linux x86-64 | glibc 2.28 or newer |
| Linux aarch64 | glibc 2.35 or newer |
| macOS | Apple Silicon, macOS 13 or newer |
| Windows | x64 |
A GPU is optional — everything renders on CPU, just more slowly. CUDA and Apple
Metal are both used when present.
The installed footprint is large, roughly 5 GB on Linux, most of it the CUDA
build of torch and its NVIDIA dependencies. If you are not using CUDA
you can install your required PyTorch build from PyTorch's official
installation page before installing Algan.
Known limitations
- macOS on Intel is not supported. The patched kernel compiler
(algan-quadrants) publishes no x86-64 macOS wheel, sopip install algan
cannot resolve there. - Linux aarch64 needs glibc 2.35. Older ARM distributions cannot install
yet; a build that lowers this to 2.34 is prepared and will land in a
following release. - musl-based Linux and Windows on ARM are not supported — no wheels are
published for either. Texton Linux needs an extra.manimpangopublishes no Linux wheel, so
system-font text ispip install "algan[pango]"and builds Pango from source.
Without it,Textfalls back to LaTeX's text mode and Manim'sMarkupText
andParagraphare unavailable.- LaTeX is optional but not bundled.
TexandMathTexneed a TeX
distribution onPATH;Textdoes not.
Links
Algan is MIT licensed, and vendors Manim, ground and sect under their own MIT
notices.