manim_express
Requirements
manim_kunyuan >= 0.33
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
-
GOA model
-
Apply function
-
Double pendulum
Metadata
Release files for manim-express 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| manim_express-0.5.2.tar.gz | 18.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| manim_express-0.5.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.3 MB
Release files / manim_express-0.5.2.tar.gz
| Download URL | manim_express-0.5.2.tar.gz |
|---|---|
| Size | 18.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd194822e0d8866e80742b61fbc3ef302a04039e7ff01b743ff41698fe0728ef
|
|
BLAKE2b-256 checksum How to use checksums |
9a6f5d26734b3d84edb384a6808219ead8cabf747060f2972e783655f9a60f6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / manim_express-0.5.2-py3-none-any.whl
| Download URL | manim_express-0.5.2-py3-none-any.whl |
|---|---|
| Size | 169.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
691ac47ca748e4d18fede4316a7e37b298551bd7305c3acba9eb9d6c758ade71
|
|
BLAKE2b-256 checksum How to use checksums |
e0a644a50b6cd5b2b72f2c08df2eb02c716b9b4188c2809b081879d7c781c68d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|