The simplest way to animate.
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Watch the 16-second demo — every frame of it, and the logo above, is rendered by Algan ( branding/ ).
Full-featured 2D/3D programmatic animation engine for explanatory mathematics and technical videos.
Algan is designed to be a successor to Manim with full-featured 3-D raytracing capabilities.
As seen on AlgorithmicSimplicity.查看完整 README ↗Algan is designed to be a successor to Manim with full-featured 3-D raytracing capabilities.
As seen on AlgorithmicSimplicity.
Seq(), Sync(), Lag(), Off(), and Speech() blocks makes animation code modular and re-usable.become().pip install algan
algan warmup # optional: compile the render kernels now, in parallel, instead of during your first render
For installing optional extra features (GPU acceleration, LaTeX for formulas, speech), see the Installation Guide.
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.
Algan is licensed under the MIT License (see LICENSE). Copyright © Algorithmic Simplicity.