An open API service indexing awesome lists of open source software.

https://github.com/eesast/manim_projects

manim projects for EESAST
https://github.com/eesast/manim_projects

Last synced: 10 months ago
JSON representation

manim projects for EESAST

Awesome Lists containing this project

README

          

# manim projects

source code of image/video generated by [manim](https://github.com/ManimCommunity/manim)

## Usage

建议使用 docker [manimcommunity/manim](https://hub.docker.com/r/manimcommunity/manim)

### 拉取镜像

```bash
docker pull manimcommunity/manim
```

默认使用 `latest` 分支,也可以使用 `stable` 分支

```bash
docker pull manimcommunity/manim:stable
```

### 开启容器

可以像文档中一样首次运行打开 `/bin/bash`

```
docker run -it --name -v "$(pwd):/manim" manimcommunity/manim /bin/bash
```

但其实用处不大,可以直接使用 `-itd`

`` 填一个简单的容器名字即可,建议不要使用 `manim` 这种和工具本身相同的名字

`$(pwd)` 即执行命令时所在路径,请在本项目的根目录下执行指令

### 生成图片、视频

在容器运行的过程中,使用下述命令生成 1080p 图片、视频

```
docker exec -it --user="$(id -u):$(id -g)" manim /path/to/code.py -qh
```

想生成质量低的,可以使用 `-ql` 代替 `-qh`

生成文件在 `media/path/to/code/` 中

## DEVELOP

编写 python 代码,建议建一个有 `manim` 库的虚拟环境