Animation engine for explanatory math videos
Project description
manim_express
Requirements
manim_kunyuan >= 0.23
sparrow_tool
fake_headers
requests
# helium
# pyperclip
Install
pip install manim_express
The above steps will automatically install packages manim_express
and manimlib
(my fork version) 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
- 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/ -
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
Built Distribution
File details
Details for the file manim_express-0.3.8.tar.gz
.
File metadata
- Download URL: manim_express-0.3.8.tar.gz
- Upload date:
- Size: 35.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0fb9827a6e270a9f5eeca79ce79c160bda2cf4b9f717a979c3968bff9ed4ba2e
|
|
MD5 |
a292ab0031e62e84e1e2c364c571eee8
|
|
BLAKE2b-256 |
82964bb817daf8d6882484eca9d6f52e3917da09887ad11e87b08492d15be441
|
File details
Details for the file manim_express-0.3.8-py3-none-any.whl
.
File metadata
- Download URL: manim_express-0.3.8-py3-none-any.whl
- Upload date:
- Size: 40.5 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.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
91cd8c77b32a2ed4d3b3c0ea3301cef2c9067cf9c078a1b77c54b340872fb44b
|
|
MD5 |
589406f1f2596e5be808c61b4ebe2d5f
|
|
BLAKE2b-256 |
3252cc0198a38fe6f76321da847a183082ebd4b4e4d3c538f55e2e8cff4077f0
|