manim_express
Requirements
manimgl>=1.3.0
manim>=0.13.1
sparrow_tool
fake_headers
requests
# helium
# pyperclip
Install
pip install manim_express
以上步骤将安装 manim_express 和 manimlib. 然后就可以在任何代码位置导入使用这个动画库了.
快速开始
-
渲染一个动画: 3b1b:SquareToCircle
from manimlib import * from manim_express import EagerModeScene scene = EagerModeScene() circle = Circle() circle.set_fill(BLUE, opacity=0.5) circle.set_stroke(BLUE_E, width=4) square = Square() scene.play(ShowCreation(square)) scene.play(ReplacementTransform(square, circle)) scene.hold_on()
与渲染画面交互:
- 按住
d键 或 鼠标左键 然后移动鼠标可以改变三维空间中相机的旋转视角. - 按住
s键 或 鼠标右键 然后移动鼠标可以平移相机. - 按住
z键 或 ctrl键 同时滚动鼠标滚轮以缩放画面. - 通过
r重制相机视角. - 离开/退出当前动画:
qortab - 暂停动画:
spaceorctrl - 前一段动画:
LEFT - 后一段动画:
RIGHT - 重新播放当前动画:
DOWN
- 按住
-
manim_expressvsMatplotlib:
在某些情况你需要安装LaTeX 以渲染tex字体.
幸运的是manim_express中提供了在线的latex 编译选项. 通过设置SceneArgs.use_online_tex=True进行激活.from manimlib import * from manim_express import * import numpy as np CONFIG.use_online_tex = True # Use online latex compiler theta = np.linspace(0, 2*np.pi, 200) x = np.cos(theta) y = np.sin(theta) # matplotlib # import matplotlib.pyplot as plt # plt.plot(x, y, color='green', linewidth=2) # plt.axis("equal") # plt.show() # manim_express scene = EagerModeScene() scene.plot(x, y, color=GREEN, width=2, scale_ratio=1) scene.show_plot() scene.hold_on()
资源
-
Wiki
https://flyingframes.readthedocs.io/en/latest/index.html
https://3b1b.github.io/manim/
https://docs.manim.org.cn/
https://docs.manim.org.cn/shaders/ -
3B1B videos:
https://github.com/3b1b/videos
Examples
-
Bezier curve
-
GOA model
-
GOA
-
Apply function
-
Double pendulum
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file manim_express-0.5.5.tar.gz.
File metadata
- Download URL: manim_express-0.5.5.tar.gz
- Upload date:
- Size: 17.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b3e4e03da1eb2163f66425efe4dd5a1723567b0855962e2fb571971c493d62f
|
|
| MD5 |
77195a4b577675bfd8f05d4bb993fa03
|
|
| BLAKE2b-256 |
80f6454d56d14187436b327dcba1d2b53776abda9b31c58fe7342b48bf1fe500
|
File details
Details for the file manim_express-0.5.5-py3-none-any.whl.
File metadata
- Download URL: manim_express-0.5.5-py3-none-any.whl
- Upload date:
- Size: 704.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f1fdf2b4c4dae75eb9d8548451f3ef8948fd68fb9df068aeb8a2cbd4ffa63cb
|
|
| MD5 |
dfad246e784e72b4827fd0323edbbcdd
|
|
| BLAKE2b-256 |
6b5bf5e90e9a2536777785dcd2b6d46cfeda15bc3b68f318a32a2cc42f626c06
|