Animation engine for explanatory math videos
Project description
manim_express
Requirements
manim_kunyuan >= 0.27
sparrow_tool
fake_headers
requests
# helium
# pyperclip
Install
pip install manim_express
The above steps will automatically install packages manim_express
and manimlib
for you. Then you can code with them anywhere.
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
d
key on the keyboard and move the mouse to change the three-dimensional perspective. - hold down the
s
key on the keyboard and move the mouse to pan the screen - hold down the
z
on 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
q
ortab
- pause the animation by pressing
space
orctrl
- previews animation clip by pressing
LEFT
- next animation clip:
RIGHT
- replay current animation clip:
DOWN
- hold down the
-
manim_express
vsMatplotlib
:
In some cases, you may need to install LaTeX to rendertex
fonts.
Fortunately, online latex compilation option is available. Just setSceneArgs.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()
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
Examples
- GOA model
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
manim_express-0.4.1.tar.gz
(188.4 kB
view hashes)
Built Distribution
manim_express-0.4.1-py3-none-any.whl
(228.0 kB
view hashes)
Close
Hashes for manim_express-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a69ea2ba3aaa0ef156511e67d0efaa8d7298eb77d99f3c2e33dd71738f78145 |
|
MD5 | 7225eefc2332d494ad870546631ccc14 |
|
BLAKE2b-256 | 35ff223a2ddf71d9f77c6419412cecde2007354114b827dc4bfa96b671f83b25 |