Animation engine for explanatory math videos
Project description
manim_express
Install
pip install manim_express
Run in pycharm
(Find action 'Registry' in PyCharm) named 'run.processes.with.pty' that allows to run Python processes with tty
Quick start
-
Render an animation: 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()
Operating graphics:
- hold down the
dkey ormouse lefton the keyboard and move the mouse to change the three-dimensional perspective. - hold down the
skey ormouse righton the keyboard and move the mouse to pan the screen - hold down the
zorctrlon the keyboard while scrolling the middle mouse button to zoom the screen - scroll the middle mouse button to move the screen up and down
- reset camera view by pressing
r - close the window and exit the program by pressing
qortab - pause the animation by pressing
spaceorctrloralt - previews animation clip by pressing
LEFT - next animation clip:
RIGHT - replay current animation clip:
DOWN
- hold down the
-
manim_expressvsMatplotlib:
In some cases, you may need to install LaTeX to rendertexfonts.
Fortunately, online latex compilation option is available. Just setCONFIG.use_online_tex=Truefrom 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()
Resources
-
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 -
export pptx
Examples
-
Bezier curve
-
GOA model
-
GOA
-
Apply function
-
Double pendulum
Project details
Release history Release notifications | RSS feed
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.6.6.tar.gz.
File metadata
- Download URL: manim_express-0.6.6.tar.gz
- Upload date:
- Size: 18.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c3da1e921af2741937ebc27b42d70b659940c00f7089439a5cfbcb465ace385
|
|
| MD5 |
7e8940b34c733b0057f2abb3c2062e6d
|
|
| BLAKE2b-256 |
2adf8bac638676b821af70b83923486079c10ce945f84748edd374856ae53b9c
|
File details
Details for the file manim_express-0.6.6-py3-none-any.whl.
File metadata
- Download URL: manim_express-0.6.6-py3-none-any.whl
- Upload date:
- Size: 80.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94e18916367244a4c12cbcc10fcdabc627265f48fe88f9ec1e9e02c3e6a6866a
|
|
| MD5 |
eb879e9b62997976fae6852db3e73d48
|
|
| BLAKE2b-256 |
d878be8b17354685d74659518e32b123b35a7f32f67acaff4603982782e8d921
|