以下教程来自:Manim Community v0.16.0.post0

工作目录结构

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
project/
├─scene.py
└─media
├─images
| └─scene
| ├─SquareToCircle.png
├─videos
| └─scene
| ├─480p15
| | ├─SquareToCircle.mp4
| | └─partial_movie_files
| └─1080p60
| ├─SquareToCircle.mp4
| └─partial_movie_files
├─text
└─Tex

manim命令行语法

输入manim --help查看简短的帮助:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Manim Community v0.16.0

Usage: manim [OPTIONS] COMMAND [ARGS]...

Animation engine for explanatory math videos.

Options:
--version Show version and exit.
--help Show this message and exit.

Commands:
cfg Manages Manim configuration files.
init Create a new project or insert a new scene.
new (Deprecated) Create a new project or insert a new scene.
plugins Manages Manim plugins.
render Render SCENE(S) from the input FILE.

See 'manim <command>' to read about a specific subcommand.

Note: the subcommand 'manim render' is called if no other subcommand is specified. Run 'manim render --help' if you would like to know what the '-ql' or '-p' flags do, for example.

Made with <3 by Manim Community developers.

然鹅还是这个比较好用:

-a渲染所有场景

-ql低质量渲染

-qm中质量渲染

-qh高质量渲染

-qk4K级别渲染

-p渲染完成立即播放

-i输出为.gif文件

-s保存最后一帧图