Note: This is a temporary test environment in which you can play around with Manim without the need of installing it locally. Keep in mind that this is a temporary environment, though: your changes will not be saved and cannot be shared with others. To save your work, you will need to download the notebook file ("File > Download as > Notebook (.ipynb)"). Enjoy!
Useful resources: Documentation, Discord, Reddit
In [1]:
from manim import *
In [2]:
%manim --help
Manim Community v0.18.1
Usage: manim [OPTIONS] COMMAND [ARGS]... Animation engine for explanatory math videos. Options: --version Show version and exit. --show-splash / --hide-splash Print splash message with version information. --help Show this message and exit. Commands: cfg Manages Manim configuration files. checkhealth This subcommand checks whether Manim is installed correctly... init Create a new project or insert a new scene. plugins Manages Manim plugins. render Render SCENE(S) from the input FILE. See 'manim <command>' to read about a specific subcommand. Note: the subcommand 'manim render' is called if no other subcommand is specified. Run 'manim render --help' if you would like to know what the '-ql' or '-p' flags do, for example. Made with <3 by Manim Community developers.
In [5]:
%%manim -qm -v WARNING VectorCoordinateLabel
class VectorCoordinateLabel(Scene):
def construct(self):
plane = NumberPlane()
vec_1 = Vector([1, 2])
vec_2 = Vector([-3, -2])
vec_2.set_color(YELLOW)
vec_3 = Vector([-2, 0])
vec_3.set_color(RED)
label_1 = vec_1.coordinate_label()
label_2 = vec_2.coordinate_label(color=YELLOW)
label_3 = vec_3.coordinate_label(color=RED)
self.add(plane, vec_1, vec_2, vec_3, label_1, label_2,label_3)
Manim Community v0.18.1
반응형
'html5' 카테고리의 다른 글
manim hypocycloid example video (0) | 2024.05.16 |
---|---|
manim animation mp4 (0) | 2024.05.11 |
eigenvalue, eigenvector practice (0) | 2024.04.30 |
mathML : using mathML (0) | 2024.04.30 |
mathjax template; (1) | 2024.04.07 |