manim_express
Requirements
manim_kunyuan >= 0.27
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键 同时滚动鼠标滚轮以缩放画面. - 通过
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 SceneArgs.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.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| manim_express-0.4.5.tar.gz | 196.2 kB | Without provenance | Details for manim_express-0.4.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| manim_express-0.4.5-py3-none-any.whl | Python 3 | none | any | Details for manim_express-0.4.5-py3-none-any.whl |
Total release size: 434.4 kB
Release files / manim_express-0.4.5.tar.gz
| Download URL | manim_express-0.4.5.tar.gz |
|---|---|
| Size | 196.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abf93aaf156c12e7c30080899083e527365e4163524733d53352438ea38073be
|
|
BLAKE2b-256 checksum How to use checksums |
ee9d825c146933259ed4fb4873f08faa71872c639de5fe22e1d9889945ca4743
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.5
|
Release files / manim_express-0.4.5-py3-none-any.whl
| Download URL | manim_express-0.4.5-py3-none-any.whl |
|---|---|
| Size | 238.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59d661825c932fcf952f93c6f9cf3621e6f2a154e625d2ca79841743bb738d71
|
|
BLAKE2b-256 checksum How to use checksums |
ae0603172d92eb187a8e479650120a27610af7debee650b8bc8c2865a99d4bcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.5
|
Security for manim-express 0.4.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.