Skip to main content

Algan

Full-featured 2D/3D programmatic animation engine for explanatory mathematics and technical videos.

Documentation PyPI version Python versions Discord Community License: MIT


Algan is designed to be a successor to Manim with full-featured 3-D raytracing capabilities.

As seen on AlgorithmicSimplicity.


Key Features

  • Manim Feature Parity: Everything you know and love from Manim.
  • GPU Ray Tracing: High-fidelity optical effects including depth of field, area lights, glossy reflections, refractive glass, and soft shadows.
  • Declarative Timeline Contexts: Intuitive animation staging with Seq(), Sync(), Lag(), Off(), and Speech() blocks makes animation code modular and re-usable.
  • Unified 2D/3D Geometry: Seamless morphing and interpolation between 2D Bézier circuits and 3D meshes with become().
  • Audio & Speech Alignment: Automatic word-level forced alignment to synchronize on-screen animations with narration.

Installation

pip install algan

For installing optional extra features (GPU acceleration, LaTeX for formulas, speech), see the Installation Guide.


Quickstart

Save this script as scene.py:

from algan import *

# 1. Make 3-D objects with physical materials
sphere = Sphere(color=BLUE, radius=1.2)
sphere.set_material(
    MeshPhysicalMaterial(
        roughness=0.15,
        metalness=0.1,
        clearcoat=1.0,
        clearcoat_roughness=0.08,
    )
)

# 2. Define animation timeline with contexts
sphere.spawn()
with Sync(runtime=2):
    sphere.move(RIGHT * 2)
    sphere.rotate(180, OUT, about=ORIGIN)
    sphere.color = RED

# 3. Render video
Scene.save_video("quickstart.mp4")

Run with Python or the Algan CLI:

# Using python
python scene.py

# Using the algan CLI
algan render scene.py

The output video will be written to algan_outputs/quickstart.mp4.


Documentation


License

Algan is licensed under the MIT License (see LICENSE). Copyright © Algorithmic Simplicity.

Metadata

Release files for algan 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for algan 0.0.2
File Size Uploaded Provenance Actions
algan-0.0.2.tar.gz 5.6 MB With provenance Details for algan-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for algan 0.0.2
File Interpreter ABI Platform Actions
algan-0.0.2-py3-none-any.whl Python 3 none any Details for algan-0.0.2-py3-none-any.whl

Total release size: 8.0 MB

Release files / algan-0.0.2.tar.gz

Download URL algan-0.0.2.tar.gz
Size 5.6 MB
Tags Source
SHA-256 checksum
How to use checksums
9adb944a6e75814163d0fe2ad2e12e7e75726adbd5793025b6e00a57b1fd50cc
BLAKE2b-256 checksum
How to use checksums
269e020d3ba54e39555085e25ed7581f9a225eabae3a271400e4496f4acbd3cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

Release files / algan-0.0.2-py3-none-any.whl

Download URL algan-0.0.2-py3-none-any.whl
Size 2.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6b3f71a2ed2b5f81062f38ab99150e388d2c2bbb08e1493c3edb0382d20e89b9
BLAKE2b-256 checksum
How to use checksums
f9548707073641326ebb70bb1937d25a1b71d396468af582ebbe5829b65272e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

Security for algan 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for algan-0.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page