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
- Host: GitHub
- URL: https://github.com/eesast/manim_projects
- Owner: eesast
- License: mit
- Created: 2021-05-23T08:17:21.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T02:53:05.000Z (over 2 years ago)
- Last Synced: 2025-02-01T16:14:31.417Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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` 库的虚拟环境