Deploying to gh-pages from @ dba0550da5 🚀

This commit is contained in:
3b1b 2021-02-11 18:56:34 +00:00
parent c407206ba0
commit 21ea50ad9d
30 changed files with 422 additions and 408 deletions

View file

@ -1,4 +1,4 @@
custom_default custom_config
============== ==============
``directories`` ``directories``
@ -18,12 +18,13 @@ custom_default
file and saved the last frame, then the final directory structure will be like: file and saved the last frame, then the final directory structure will be like:
.. code-block:: text .. code-block:: text
:emphasize-lines: 8, 10 :emphasize-lines: 9, 11
manim/ manim/
├── manimlib/ ├── manimlib/
│ ├── animation/ │ ├── animation/
│ ├── ... │ ├── ...
│ ├── default_config.yml
│ └── window.py │ └── window.py
├── output/ ├── output/
│ ├── images │ ├── images
@ -31,18 +32,18 @@ custom_default
│ └── videos │ └── videos
│ └── Scene1.mp4 │ └── Scene1.mp4
├── code.py ├── code.py
├── custom_default.yml └── custom_config.yml
└── manim.py
But if you set ``mirror_module_path`` to ``True``, the directory structure will be: But if you set ``mirror_module_path`` to ``True``, the directory structure will be:
.. code-block:: text .. code-block:: text
:emphasize-lines: 7 :emphasize-lines: 8
manim/ manim/
├── manimlib/ ├── manimlib/
│ ├── animation/ │ ├── animation/
│ ├── ... │ ├── ...
│ ├── default_config.yml
│ └── window.py │ └── window.py
├── output/ ├── output/
│ └── code/ │ └── code/
@ -51,8 +52,7 @@ custom_default
│ └── videos │ └── videos
│ └── Scene1.mp4 │ └── Scene1.mp4
├── code.py ├── code.py
├── custom_default.yml └── custom_config.yml
└── manim.py
- ``raster_images`` - ``raster_images``
The directory for storing raster images to be used in the code (including The directory for storing raster images to be used in the code (including

View file

@ -4,14 +4,16 @@ CLI flags and configuration
Command Line Interface Command Line Interface
---------------------- ----------------------
To run manim, you need to enter the directory at the same level as ``manim.py`` To run manim, you need to enter the directory at the same level as ``manimlib/``
and enter the command in the following format into terminal: and enter the command in the following format into terminal:
.. code-block:: sh .. code-block:: sh
python manim.py <code>.py <Scene> <flags> manimgl <code>.py <Scene> <flags>
# or
manim-render <code>.py <Scene> <flags>
- ``<code>.py`` : The python file you wrote. Needs to be at the same level as ``manim.py``, otherwise you need to use an absolute path or a relative path. - ``<code>.py`` : The python file you wrote. Needs to be at the same level as ``manimlib/``, otherwise you need to use an absolute path or a relative path.
- ``<Scene>`` : The scene you want to render here. If it is not written or written incorrectly, it will list all for you to choose. And if there is only one ``Scene`` in the file, this class will be rendered directly. - ``<Scene>`` : The scene you want to render here. If it is not written or written incorrectly, it will list all for you to choose. And if there is only one ``Scene`` in the file, this class will be rendered directly.
- ``<flags>`` : CLI flags. - ``<flags>`` : CLI flags.
@ -48,6 +50,7 @@ flag abbr function
``--write_all`` ``-a`` Write all the scenes from a file ``--write_all`` ``-a`` Write all the scenes from a file
``--open`` ``-o`` Automatically open the saved file once its done ``--open`` ``-o`` Automatically open the saved file once its done
``--finder`` Show the output file in finder ``--finder`` Show the output file in finder
``--config`` Guide for automatic configuration
``--file_name FILE_NAME`` Name for the movie or image file ``--file_name FILE_NAME`` Name for the movie or image file
``--start_at_animation_number START_AT_ANIMATION_NUMBER`` ``-n`` Start rendering not from the first animation, but from another, specified by its index. If you passin two comma separated values, e.g. "3,6", it will end the rendering at the second value. ``--start_at_animation_number START_AT_ANIMATION_NUMBER`` ``-n`` Start rendering not from the first animation, but from another, specified by its index. If you passin two comma separated values, e.g. "3,6", it will end the rendering at the second value.
``--resolution RESOLUTION`` ``-r`` Resolution, passed as "WxH", e.g. "1920x1080" ``--resolution RESOLUTION`` ``-r`` Resolution, passed as "WxH", e.g. "1920x1080"
@ -57,15 +60,15 @@ flag abbr function
``--video_dir VIDEO_DIR`` directory to write video ``--video_dir VIDEO_DIR`` directory to write video
========================================================== ====== ================================================================================================================================================================================================= ========================================================== ====== =================================================================================================================================================================================================
custom_default custom_config
-------------- --------------
In order to perform more configuration (about directories, etc.) and permanently In order to perform more configuration (about directories, etc.) and permanently
change the default value (you don't have to add flags to the command every time), change the default value (you don't have to add flags to the command every time),
you can modify ``custom_default.yml``. The meaning of each option is in you can modify ``custom_config.yml``. The meaning of each option is in
page :doc:`../documentation/custom_default`. page :doc:`../documentation/custom_config`.
You can also use different ``custom_default.yml`` for different directories, such as You can also use different ``custom_config.yml`` for different directories, such as
following the directory structure: following the directory structure:
.. code-block:: text .. code-block:: text
@ -74,13 +77,13 @@ following the directory structure:
├── manimlib/ ├── manimlib/
│ ├── animation/ │ ├── animation/
│ ├── ... │ ├── ...
│ ├── default_config.yml
│ └── window.py │ └── window.py
├── project/ ├── project/
│ ├── code.py │ ├── code.py
│ └── custom_default.yml │ └── custom_config.yml
├── custom_default.yml └── custom_config.yml
└── manim.py
When you enter the ``project/`` folder and run ``python ../manim.py code.py <Scene>``, When you enter the ``project/`` folder and run ``manimgl code.py <Scene>``,
it will overwrite ``manim/custom_default.yml`` with ``custom_default.yml`` it will overwrite ``manim/custom_config.yml`` with ``custom_config.yml``
in the ``project`` folder. in the ``project`` folder.

View file

@ -11,7 +11,7 @@ InteractiveDevlopment
.. manim-example:: InteractiveDevlopment .. manim-example:: InteractiveDevlopment
:media: ../_static/example_scenes/InteractiveDevlopment.mp4 :media: ../_static/example_scenes/InteractiveDevlopment.mp4
from manimlib.imports import * from manimlib import *
class InteractiveDevlopment(Scene): class InteractiveDevlopment(Scene):
def construct(self): def construct(self):
@ -572,7 +572,7 @@ SurfaceExample
# be interpreted as the side towards the light, and away from # be interpreted as the side towards the light, and away from
# the light. These can be either urls, or paths to a local file # the light. These can be either urls, or paths to a local file
# in whatever you've set as the image directory in # in whatever you've set as the image directory in
# the custom_defaults.yml file # the custom_config.yml file
# day_texture = "EarthTextureMap" # day_texture = "EarthTextureMap"
# night_texture = "NightEarthTextureMap" # night_texture = "NightEarthTextureMap"

View file

@ -19,10 +19,12 @@ that directory execute:
.. code-block:: sh .. code-block:: sh
# Install python requirements # Install python requirements
pip install -r requirements.txt pip install -e .
# Try it out # Try it out
python -m manim example_scenes.py OpeningManimExample manimgl example_scenes.py OpeningManimExample
# or
manim-render example_scenes.py OpeningManimExample
If you run the above command and no error message appears, If you run the above command and no error message appears,
then you have successfully installed all the environments required by manim. then you have successfully installed all the environments required by manim.
@ -40,8 +42,8 @@ Directly (Windows)
git clone https://github.com/3b1b/manim.git git clone https://github.com/3b1b/manim.git
cd manim cd manim
pip install -r requirements.txt pip install -e .
python manim.py example_scenes.py OpeningManimExample manimgl example_scenes.py OpeningManimExample
For Anaconda For Anaconda
------------ ------------
@ -53,15 +55,6 @@ For Anaconda
git clone https://github.com/3b1b/manim.git git clone https://github.com/3b1b/manim.git
cd manim cd manim
conda env create -f environment.yml conda create -n manim python=3.8
conda activate manim
Using virtualenv and virtualenvwrapper pip install -e .
--------------------------------------
After installing ``virtualenv`` and ``virtualenvwrapper``
.. code-block:: sh
git clone https://github.com/3b1b/manim.git
mkvirtualenv -a manim -r requirements.txt manim
python -m manim example_scenes.py OpeningManimExample

View file

@ -14,9 +14,9 @@ directory structure:
├── manimlib/ ├── manimlib/
│ ├── animation/ │ ├── animation/
│ ├── ... │ ├── ...
│ ├── default_config.yml
│ └── window.py │ └── window.py
├── custom_default.yml ├── custom_config.yml
├── manim.py
└── start.py └── start.py
And paste the following code (I will explain the function of each line in detail later): And paste the following code (I will explain the function of each line in detail later):
@ -24,7 +24,7 @@ And paste the following code (I will explain the function of each line in detail
.. code-block:: python .. code-block:: python
:linenos: :linenos:
from manimlib.imports import * from manimlib import *
class SquareToCircle(Scene): class SquareToCircle(Scene):
def construct(self): def construct(self):
@ -38,7 +38,7 @@ And run this command:
.. code-block:: sh .. code-block:: sh
python manim.py start.py SquareToCircle manimgl start.py SquareToCircle
A window will pop up on the screen. And then you can : A window will pop up on the screen. And then you can :
@ -53,7 +53,7 @@ Run this command again:
.. code-block:: sh .. code-block:: sh
python manim.py start.py SquareToCircle -os manimgl start.py SquareToCircle -os
At this time, no window will pop up. When the program is finished, this rendered At this time, no window will pop up. When the program is finished, this rendered
image will be automatically opened (saved in the subdirectory ``images/`` of the same image will be automatically opened (saved in the subdirectory ``images/`` of the same
@ -70,9 +70,15 @@ Next, let's take a detailed look at what each row does.
**Line 1**: **Line 1**:
.. code-block:: python .. code-block:: python
<<<<<<< HEAD
from manimlib.imports import * from manimlib.imports import *
=======
from manimlib import *
>>>>>>> TonyCrane-package-improve
This will import all the classes that may be used when using manim. This will import all the classes that may be used when using manim.
**Line 3**: **Line 3**:
@ -129,7 +135,7 @@ Let's change some codes and add some animations to make videos instead of just p
.. code-block:: python .. code-block:: python
:linenos: :linenos:
from manimlib.imports import * from manimlib import *
class SquareToCircle(Scene): class SquareToCircle(Scene):
def construct(self): def construct(self):
@ -147,14 +153,14 @@ Run this command this time:
.. code-block:: sh .. code-block:: sh
python manim.py start.py SquareToCircle manimgl start.py SquareToCircle
The pop-up window will play animations of drawing a square and transforming The pop-up window will play animations of drawing a square and transforming
it into a circle. If you want to save this video, run: it into a circle. If you want to save this video, run:
.. code-block:: sh .. code-block:: sh
python manim.py start.py SquareToCircle -ow manimgl start.py SquareToCircle -o
This time there will be no pop-up window, but the video file (saved in the subdirectory This time there will be no pop-up window, but the video file (saved in the subdirectory
``videos/`` of the same level directory of ``start.py`` by default) will be automatically ``videos/`` of the same level directory of ``start.py`` by default) will be automatically
@ -209,7 +215,11 @@ at the end of the code to enable interaction:
self.embed() self.embed()
<<<<<<< HEAD
Then run ``python manim.py start.py SquareToCircle``. Then run ``python manim.py start.py SquareToCircle``.
=======
Then run ``manimgl start.py SquareToCircle``.
>>>>>>> TonyCrane-package-improve
After the previous animation is executed, the ipython terminal will be opened on After the previous animation is executed, the ipython terminal will be opened on
the command line. After that, you can continue to write code in it, and the statement the command line. After that, you can continue to write code in it, and the statement
@ -245,7 +255,7 @@ empty scene containing only ``self.embed()``, you can directly run the following
.. code-block:: sh .. code-block:: sh
python manim.py manimgl
You succeeded! You succeeded!
-------------- --------------

View file

@ -12,107 +12,105 @@ Below is the directory structure of manim:
.. code-block:: text .. code-block:: text
├── manim.py # Manim command entry manimlib/ # manim library
├── custom_default.yml # Default configuration ├── __init__.py
└── manimlib/ # manim library ├── __main__.py
├── __init__.py # run from here ├── default_config.yml # Default configuration file
├── config.py # Process CLI flags ├── config.py # Process CLI flags
├── constants.py # Defined some constants ├── constants.py # Defined some constants
├── extract_scene.py # Extract and run the scene ├── extract_scene.py # Extract and run the scene
├── imports.py # Import all required files in manimlib ├── shader_wrapper.py # Shaders' Wrapper for convenient control
├── shader_wrapper.py # Shaders' Wrapper for convenient control ├── window.py # Playback window
├── window.py # Playback window ├── tex_templates/ # Templates preset for LaTeX
├── tex_templates/ # Templates preset for LaTeX │ ├── tex_templates.tex # Tex template (will be compiled with latex, default)
│ ├── tex_templates.tex # Tex template (will be compiled with latex, default) │ └── ctex_templates.tex # Tex template that support Chinese (will be compiled with xelatex)
│ └── ctex_templates.tex # Tex template that support Chinese (will be compiled with xelatex) ├── camera/
├── camera/ │ └── camera.py # Including Camera and CameraFrame
│ └── camera.py # Including Camera and CameraFrame ├── scene/
├── scene/ │ ├── scene_file_writer.py # Used to write scene to video file
│ ├── scene_file_writer.py # Used to write scene to video file │ ├── scene.py # The basic Scene class
│ ├── scene.py # The basic Scene class │ ├── three_d_scene.py # Three-dimensional scene
│ ├── three_d_scene.py # Three-dimensional scene │ ├── sample_space_scene.py # Probability related sample space scene
│ ├── graph_scene.py # GraphScene (with coordinate axis) │ └── vector_space_scene.py # Vector field scene
│ ├── reconfigurable_scene.py ├── animation/
│ ├── sample_space_scene.py # Probability related sample space scene │ ├── animation.py # The basic class of animation
│ └── vector_space_scene.py # Vector field scene │ ├── composition.py # Animation group
├── animation/ │ ├── creation.py # Animation related to Create
│ ├── animation.py # The basic class of animation │ ├── fading.py # Fade related animation
│ ├── composition.py # Animation group │ ├── growing.py # Animation related to Grow
│ ├── creation.py # Animation related to Create │ ├── indication.py # Some animations for emphasis
│ ├── fading.py # Fade related animation │ ├── movement.py # Animation related to movement
│ ├── growing.py # Animation related to Grow │ ├── numbers.py # Realize changes to DecimalNumber
│ ├── indication.py # Some animations for emphasis │ ├── rotation.py # Animation related to rotation
│ ├── movement.py # Animation related to movement │ ├── specialized.py # Some uncommon animations for special projects
│ ├── numbers.py # Realize changes to DecimalNumber │ ├── transform_matching_parts.py # Transform which can automatically match parts
│ ├── rotation.py # Animation related to rotation │ ├── transform.py # Some Transforms
│ ├── specialized.py # Some uncommon animations for special projects │ └── update.py # Realize update from function
│ ├── transform_matching_parts.py # Transform which can automatically match parts ├── mobject/
│ ├── transform.py # Some Transforms │ ├── mobject.py # The basic class of all math object
│ └── update.py # Realize update from function │ ├── types/ # 4 types of mobject
├── mobject/ │ │ ├── dot_cloud.py # Dot cloud (an subclass of PMobject)
│ ├── mobject.py # The basic class of all math object │ │ ├── image_mobject.py # Insert pictures
│ ├── types/ # 4 types of mobject │ │ ├── point_cloud_mobject.py # PMobject (mobject composed of points)
│ │ ├── dot_cloud.py # Dot cloud (an subclass of PMobject) │ │ ├── surface.py # ParametricSurface
│ │ ├── image_mobject.py # Insert pictures │ │ └── vectorized_mobject.py # VMobject (vectorized mobject)
│ │ ├── point_cloud_mobject.py # PMobject (mobject composed of points) │ ├── svg/ # mobject related to svg
│ │ ├── surface.py # ParametricSurface │ │ ├── svg_mobject.py # SVGMobject
│ │ └── vectorized_mobject.py # VMobject (vectorized mobject) │ │ ├── brace.py # Brace
│ ├── svg/ # mobject related to svg │ │ ├── drawings.py # Some special mobject of svg image
│ │ ├── svg_mobject.py # SVGMobject │ │ ├── tex_mobject.py # Tex and TexText implemented by LaTeX
│ │ ├── brace.py # Brace │ │ └── text_mobject.py # Text implemented by cairo
│ │ ├── drawings.py # Some special mobject of svg image │ ├── changing.py # Dynamically changing mobject
│ │ ├── tex_mobject.py # Tex and TexText implemented by LaTeX │ ├── coordinate_systems.py # coordinate system
│ │ └── text_mobject.py # Text implemented by cairo │ ├── frame.py # mobject related to frame
│ ├── changing.py # Dynamically changing mobject │ ├── functions.py # ParametricFunction
│ ├── coordinate_systems.py # coordinate system │ ├── geometry.py # geometry mobjects
│ ├── frame.py # mobject related to frame │ ├── matrix.py # matrix
│ ├── functions.py # ParametricFunction │ ├── mobject_update_utils.py # some defined updater
│ ├── geometry.py # geometry mobjects │ ├── number_line.py # Number line
│ ├── matrix.py # matrix │ ├── numbers.py # Numbers that can be changed
│ ├── mobject_update_utils.py # some defined updater │ ├── probability.py # mobject related to probability
│ ├── number_line.py # Number line │ ├── shape_matchers.py # mobject adapted to the size of other objects
│ ├── numbers.py # Numbers that can be changed │ ├── three_dimensions.py # Three-dimensional objects
│ ├── probability.py # mobject related to probability │ ├── value_tracker.py # ValueTracker which storage number
│ ├── shape_matchers.py # mobject adapted to the size of other objects │ └── vector_field.py # VectorField
│ ├── three_dimensions.py # Three-dimensional objects ├── once_useful_constructs/ # 3b1b's Common scenes written for some videos
│ ├── value_tracker.py # ValueTracker which storage number │ └── ...
│ └── vector_field.py # VectorField ├── shaders/ # GLSL scripts for rendering
├── once_useful_constructs/ # 3b1b's Common scenes written for some videos │ ├── simple_vert.glsl # a simple glsl script for position
│ └── ... │ ├── insert/ # glsl scripts to be inserted in other glsl scripts
├── shaders/ # GLSL scripts for rendering │ │ ├── NOTE.md # explain how to insert glsl scripts
│ ├── simple_vert.glsl # a simple glsl script for position │ │ └── ... # useful scripts
│ ├── insert/ # glsl scripts to be inserted in other glsl scripts │ ├── image/ # glsl for images
│ │ ├── NOTE.md # explain how to insert glsl scripts │ │ └── ... # containing shaders for vertex and fragment
│ │ └── ... # useful scripts │ ├── quadratic_bezier_fill/ # glsl for the fill of quadratic bezier curve
│ ├── image/ # glsl for images │ │ └── ... # containing shaders for vertex, fragment and geometry
│ │ └── ... # containing shaders for vertex and fragment │ ├── quadratic_bezier_stroke/ # glsl for the stroke of quadratic bezier curve
│ ├── quadratic_bezier_fill/ # glsl for the fill of quadratic bezier curve │ │ └── ... # containing shaders for vertex, fragment and geometry
│ │ └── ... # containing shaders for vertex, fragment and geometry │ ├── surface/ # glsl for surfaces
│ ├── quadratic_bezier_stroke/ # glsl for the stroke of quadratic bezier curve │ │ └── ... # containing shaders for vertex and fragment
│ │ └── ... # containing shaders for vertex, fragment and geometry │ ├── textured_surface/ # glsl for textured_surface
│ ├── surface/ # glsl for surfaces │ │ └── ... # containing shaders for vertex and fragment
│ │ └── ... # containing shaders for vertex and fragment │ └── true_dot/ # glsl for a dot
│ ├── textured_surface/ # glsl for textured_surface │ └── ... # containing shaders for vertex, fragment and geometry
│ │ └── ... # containing shaders for vertex and fragment └── utils/ # Some useful utility functions
│ └── true_dot/ # glsl for a dot ├── bezier.py # For bezier curve
│ └── ... # containing shaders for vertex, fragment and geometry ├── color.py # For color
└── utils/ # Some useful utility functions ├── config_ops.py # Process CONFIG
├── bezier.py # For bezier curve ├── customization.py # Read from custom_config.yml
├── color.py # For color ├── debug.py # Utilities for debugging in program
├── config_ops.py # Process CONFIG ├── family_ops.py # Process family members
├── customization.py # Read from custom_default.yml ├── file_ops.py # Process files and directories
├── debug.py # Utilities for debugging in program ├── images.py # Read image
├── family_ops.py # Process family members ├── init_config.py # Configuration guide
├── file_ops.py # Process files and directories ├── iterables.py # Functions related to list/dictionary processing
├── images.py # Read image ├── paths.py # Curve path
├── iterables.py # Functions related to list/dictionary processing ├── rate_functions.py # Some defined rate_functions
├── paths.py # Curve path ├── simple_functions.py # Some commonly used functions
├── rate_functions.py # Some defined rate_functions ├── sounds.py # Process sounds
├── simple_functions.py # Some commonly used functions ├── space_ops.py # Space coordinate calculation
├── sounds.py # Process sounds ├── strings.py # Process strings
├── space_ops.py # Space coordinate calculation └── tex_file_writing.py # Use LaTeX to write strings as svg
├── strings.py # Process strings
└── tex_file_writing.py # Use LaTeX to write strings as svg
Inheritance structure of manim's classes Inheritance structure of manim's classes
---------------------------------------- ----------------------------------------

View file

@ -25,7 +25,7 @@ And here is a Chinese version of this documentation: https://manim.ml/shaders
:caption: Documentation :caption: Documentation
documentation/constants documentation/constants
documentation/custom_default documentation/custom_config
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../_static/copybutton.css" /> <link rel="stylesheet" href="../_static/copybutton.css" />
<link rel="stylesheet" href="../_static/custom.css" /> <link rel="stylesheet" href="../_static/custom.css" />
<link rel="stylesheet" href="../_static/colors.css" /> <link rel="stylesheet" href="../_static/colors.css" />
<link rel="stylesheet" href="../_static/styles/default.css?771651f2559f07cbf6092fc4"> <link rel="stylesheet" href="../_static/styles/default.css?c80a934c52a7e2f3f284a485">
<link rel="stylesheet" href="../_static/pygments.css?771651f2559f07cbf6092fc4"> <link rel="stylesheet" href="../_static/pygments.css?c80a934c52a7e2f3f284a485">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../_static/language_data.js" defer></script> <script src="../_static/language_data.js" defer></script>
<script src="../_static/clipboard.min.js"></script> <script src="../_static/clipboard.min.js"></script>
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?771651f2559f07cbf6092fc4"></script></head> <script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?c80a934c52a7e2f3f284a485"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../documentation/custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul class="current"> <ul class="current">

View file

@ -1,15 +1,15 @@
<!doctype html> <!doctype html>
<html class="no-js"> <html class="no-js">
<head><meta charset="utf-8"/> <head><meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="Contributing" href="contributing.html" /><link rel="prev" title="custom_default" href="../documentation/custom_default.html" /> <meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="Contributing" href="contributing.html" /><link rel="prev" title="custom_config" href="../documentation/custom_config.html" />
<link rel="shortcut icon" href="../_static/icon.png"/><meta name="generator" content="sphinx-3.0.3, furo 2020.10.05.beta9"/> <link rel="shortcut icon" href="../_static/icon.png"/><meta name="generator" content="sphinx-3.0.3, furo 2020.10.05.beta9"/>
<title>Changelog - manim documentation</title> <title>Changelog - manim documentation</title>
<link rel="stylesheet" href="../_static/copybutton.css" /> <link rel="stylesheet" href="../_static/copybutton.css" />
<link rel="stylesheet" href="../_static/custom.css" /> <link rel="stylesheet" href="../_static/custom.css" />
<link rel="stylesheet" href="../_static/colors.css" /> <link rel="stylesheet" href="../_static/colors.css" />
<link rel="stylesheet" href="../_static/styles/default.css?a6e7871b48197986075fbb5c"> <link rel="stylesheet" href="../_static/styles/default.css?ff10aee26cc2b6b61f63dcd4">
<link rel="stylesheet" href="../_static/pygments.css?a6e7871b48197986075fbb5c"> <link rel="stylesheet" href="../_static/pygments.css?ff10aee26cc2b6b61f63dcd4">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../_static/language_data.js" defer></script> <script src="../_static/language_data.js" defer></script>
<script src="../_static/clipboard.min.js"></script> <script src="../_static/clipboard.min.js"></script>
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?a6e7871b48197986075fbb5c"></script></head> <script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?ff10aee26cc2b6b61f63dcd4"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../documentation/custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul class="current"> <ul class="current">
@ -138,14 +138,14 @@
</div> </div>
<svg><use href="#svg-arrow-right"></use></svg> <svg><use href="#svg-arrow-right"></use></svg>
</a> </a>
<a class="prev-page" href="../documentation/custom_default.html"> <a class="prev-page" href="../documentation/custom_config.html">
<svg><use href="#svg-arrow-right"></use></svg> <svg><use href="#svg-arrow-right"></use></svg>
<div class="page-info"> <div class="page-info">
<div class="context"> <div class="context">
<span>Previous</span> <span>Previous</span>
</div> </div>
<div class="title">custom_default</div> <div class="title">custom_config</div>
</div> </div>
</a> </a>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../_static/copybutton.css" /> <link rel="stylesheet" href="../_static/copybutton.css" />
<link rel="stylesheet" href="../_static/custom.css" /> <link rel="stylesheet" href="../_static/custom.css" />
<link rel="stylesheet" href="../_static/colors.css" /> <link rel="stylesheet" href="../_static/colors.css" />
<link rel="stylesheet" href="../_static/styles/default.css?39b99ac6366ff9dbb009a33d"> <link rel="stylesheet" href="../_static/styles/default.css?d1e6a05ddadfc673655b663b">
<link rel="stylesheet" href="../_static/pygments.css?39b99ac6366ff9dbb009a33d"> <link rel="stylesheet" href="../_static/pygments.css?d1e6a05ddadfc673655b663b">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../_static/language_data.js" defer></script> <script src="../_static/language_data.js" defer></script>
<script src="../_static/clipboard.min.js"></script> <script src="../_static/clipboard.min.js"></script>
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?39b99ac6366ff9dbb009a33d"></script></head> <script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?d1e6a05ddadfc673655b663b"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../documentation/custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul class="current"> <ul class="current">

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../../_static/copybutton.css" /> <link rel="stylesheet" href="../../_static/copybutton.css" />
<link rel="stylesheet" href="../../_static/custom.css" /> <link rel="stylesheet" href="../../_static/custom.css" />
<link rel="stylesheet" href="../../_static/colors.css" /> <link rel="stylesheet" href="../../_static/colors.css" />
<link rel="stylesheet" href="../../_static/styles/default.css?4a544c696eafaf5c4a31d567"> <link rel="stylesheet" href="../../_static/styles/default.css?55a59d32da9aa3655900d7a9">
<link rel="stylesheet" href="../../_static/pygments.css?4a544c696eafaf5c4a31d567"> <link rel="stylesheet" href="../../_static/pygments.css?55a59d32da9aa3655900d7a9">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../../_static/language_data.js" defer></script> <script src="../../_static/language_data.js" defer></script>
<script src="../../_static/clipboard.min.js"></script> <script src="../../_static/clipboard.min.js"></script>
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?4a544c696eafaf5c4a31d567"></script></head> <script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?55a59d32da9aa3655900d7a9"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../../_static/copybutton.css" /> <link rel="stylesheet" href="../../_static/copybutton.css" />
<link rel="stylesheet" href="../../_static/custom.css" /> <link rel="stylesheet" href="../../_static/custom.css" />
<link rel="stylesheet" href="../../_static/colors.css" /> <link rel="stylesheet" href="../../_static/colors.css" />
<link rel="stylesheet" href="../../_static/styles/default.css?06c93df036aa2d88fd9d2786"> <link rel="stylesheet" href="../../_static/styles/default.css?5590b56e9f4e94938b722b7b">
<link rel="stylesheet" href="../../_static/pygments.css?06c93df036aa2d88fd9d2786"> <link rel="stylesheet" href="../../_static/pygments.css?5590b56e9f4e94938b722b7b">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../../_static/language_data.js" defer></script> <script src="../../_static/language_data.js" defer></script>
<script src="../../_static/clipboard.min.js"></script> <script src="../../_static/clipboard.min.js"></script>
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?06c93df036aa2d88fd9d2786"></script></head> <script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?5590b56e9f4e94938b722b7b"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>

View file

@ -1,15 +1,15 @@
<!doctype html> <!doctype html>
<html class="no-js"> <html class="no-js">
<head><meta charset="utf-8"/> <head><meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="custom_default" href="custom_default.html" /><link rel="prev" title="Whats new" href="../getting_started/whatsnew.html" /> <meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="custom_config" href="custom_config.html" /><link rel="prev" title="Whats new" href="../getting_started/whatsnew.html" />
<link rel="shortcut icon" href="../_static/icon.png"/><meta name="generator" content="sphinx-3.0.3, furo 2020.10.05.beta9"/> <link rel="shortcut icon" href="../_static/icon.png"/><meta name="generator" content="sphinx-3.0.3, furo 2020.10.05.beta9"/>
<title>constants - manim documentation</title> <title>constants - manim documentation</title>
<link rel="stylesheet" href="../_static/copybutton.css" /> <link rel="stylesheet" href="../_static/copybutton.css" />
<link rel="stylesheet" href="../_static/custom.css" /> <link rel="stylesheet" href="../_static/custom.css" />
<link rel="stylesheet" href="../_static/colors.css" /> <link rel="stylesheet" href="../_static/colors.css" />
<link rel="stylesheet" href="../_static/styles/default.css?e55b2d5a3d9c44a412253709"> <link rel="stylesheet" href="../_static/styles/default.css?add208f83f9222357d94b237">
<link rel="stylesheet" href="../_static/pygments.css?e55b2d5a3d9c44a412253709"> <link rel="stylesheet" href="../_static/pygments.css?add208f83f9222357d94b237">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../_static/language_data.js" defer></script> <script src="../_static/language_data.js" defer></script>
<script src="../_static/clipboard.min.js"></script> <script src="../_static/clipboard.min.js"></script>
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?e55b2d5a3d9c44a412253709"></script></head> <script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?add208f83f9222357d94b237"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul class="current"> <ul class="current">
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">constants</a></li> <li class="toctree-l1 current current-page"><a class="current reference internal" href="#">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>
@ -304,12 +304,12 @@ they are only used inside manim.</p>
<footer> <footer>
<div class="related-pages"> <div class="related-pages">
<a class="next-page" href="custom_default.html"> <a class="next-page" href="custom_config.html">
<div class="page-info"> <div class="page-info">
<div class="context"> <div class="context">
<span>Next</span> <span>Next</span>
</div> </div>
<div class="title">custom_default</div> <div class="title">custom_config</div>
</div> </div>
<svg><use href="#svg-arrow-right"></use></svg> <svg><use href="#svg-arrow-right"></use></svg>
</a> </a>

View file

@ -4,12 +4,12 @@
<meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="Changelog" href="../development/changelog.html" /><link rel="prev" title="constants" href="constants.html" /> <meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="Changelog" href="../development/changelog.html" /><link rel="prev" title="constants" href="constants.html" />
<link rel="shortcut icon" href="../_static/icon.png"/><meta name="generator" content="sphinx-3.0.3, furo 2020.10.05.beta9"/> <link rel="shortcut icon" href="../_static/icon.png"/><meta name="generator" content="sphinx-3.0.3, furo 2020.10.05.beta9"/>
<title>custom_default - manim documentation</title> <title>custom_config - manim documentation</title>
<link rel="stylesheet" href="../_static/copybutton.css" /> <link rel="stylesheet" href="../_static/copybutton.css" />
<link rel="stylesheet" href="../_static/custom.css" /> <link rel="stylesheet" href="../_static/custom.css" />
<link rel="stylesheet" href="../_static/colors.css" /> <link rel="stylesheet" href="../_static/colors.css" />
<link rel="stylesheet" href="../_static/styles/default.css?9fb2a5ed21eafadaec1e5006"> <link rel="stylesheet" href="../_static/styles/default.css?e77e3db0401f1239118a6a84">
<link rel="stylesheet" href="../_static/pygments.css?9fb2a5ed21eafadaec1e5006"> <link rel="stylesheet" href="../_static/pygments.css?e77e3db0401f1239118a6a84">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../_static/language_data.js" defer></script> <script src="../_static/language_data.js" defer></script>
<script src="../_static/clipboard.min.js"></script> <script src="../_static/clipboard.min.js"></script>
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?9fb2a5ed21eafadaec1e5006"></script></head> <script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?e77e3db0401f1239118a6a84"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul class="current"> <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="constants.html">constants</a></li>
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">custom_default</a></li> <li class="toctree-l1 current current-page"><a class="current reference internal" href="#">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>
@ -120,8 +120,8 @@
<label class="toc-overlay-icon" for="__toc"> <label class="toc-overlay-icon" for="__toc">
<i class="icon"><svg><use href="#svg-toc"></use></svg></i> <i class="icon"><svg><use href="#svg-toc"></use></svg></i>
</label> </label>
<div class="section" id="custom-default"> <div class="section" id="custom-config">
<h1>custom_default<a class="headerlink" href="#custom-default" title="Permalink to this headline"></a></h1> <h1>custom_config<a class="headerlink" href="#custom-config" title="Permalink to this headline"></a></h1>
<div class="section" id="directories"> <div class="section" id="directories">
<h2><code class="docutils literal notranslate"><span class="pre">directories</span></code><a class="headerlink" href="#directories" title="Permalink to this headline"></a></h2> <h2><code class="docutils literal notranslate"><span class="pre">directories</span></code><a class="headerlink" href="#directories" title="Permalink to this headline"></a></h2>
<ul> <ul>
@ -142,6 +142,7 @@ file and saved the last frame, then the final directory structure will be like:<
├── manimlib/ ├── manimlib/
│ ├── animation/ │ ├── animation/
│ ├── ... │ ├── ...
│ ├── default_config.yml
│ └── window.py │ └── window.py
├── output/ ├── output/
│ ├── images │ ├── images
@ -149,8 +150,7 @@ file and saved the last frame, then the final directory structure will be like:<
</span> │ └── videos </span> │ └── videos
<span class="hll"> │ └── Scene1.mp4 <span class="hll"> │ └── Scene1.mp4
</span> ├── code.py </span> ├── code.py
├── custom_default.yml └── custom_config.yml
└── manim.py
</pre></div> </pre></div>
</div> </div>
<p>But if you set <code class="docutils literal notranslate"><span class="pre">mirror_module_path</span></code> to <code class="docutils literal notranslate"><span class="pre">True</span></code>, the directory structure will be:</p> <p>But if you set <code class="docutils literal notranslate"><span class="pre">mirror_module_path</span></code> to <code class="docutils literal notranslate"><span class="pre">True</span></code>, the directory structure will be:</p>
@ -158,6 +158,7 @@ file and saved the last frame, then the final directory structure will be like:<
├── manimlib/ ├── manimlib/
│ ├── animation/ │ ├── animation/
│ ├── ... │ ├── ...
│ ├── default_config.yml
│ └── window.py │ └── window.py
├── output/ ├── output/
<span class="hll"> │ └── code/ <span class="hll"> │ └── code/
@ -166,8 +167,7 @@ file and saved the last frame, then the final directory structure will be like:<
│ └── videos │ └── videos
│ └── Scene1.mp4 │ └── Scene1.mp4
├── code.py ├── code.py
├── custom_default.yml └── custom_config.yml
└── manim.py
</pre></div> </pre></div>
</div> </div>
</dd> </dd>
@ -338,7 +338,7 @@ effectively has cuts at all the places you might want.</p>
</div> </div>
<div class="toc-tree"> <div class="toc-tree">
<ul> <ul>
<li><a class="reference internal" href="#">custom_default</a><ul> <li><a class="reference internal" href="#">custom_config</a><ul>
<li><a class="reference internal" href="#directories"><code class="docutils literal notranslate"><span class="pre">directories</span></code></a></li> <li><a class="reference internal" href="#directories"><code class="docutils literal notranslate"><span class="pre">directories</span></code></a></li>
<li><a class="reference internal" href="#tex"><code class="docutils literal notranslate"><span class="pre">tex</span></code></a></li> <li><a class="reference internal" href="#tex"><code class="docutils literal notranslate"><span class="pre">tex</span></code></a></li>
<li><a class="reference internal" href="#universal-import-line"><code class="docutils literal notranslate"><span class="pre">universal_import_line</span></code></a></li> <li><a class="reference internal" href="#universal-import-line"><code class="docutils literal notranslate"><span class="pre">universal_import_line</span></code></a></li>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../../_static/copybutton.css" /> <link rel="stylesheet" href="../../_static/copybutton.css" />
<link rel="stylesheet" href="../../_static/custom.css" /> <link rel="stylesheet" href="../../_static/custom.css" />
<link rel="stylesheet" href="../../_static/colors.css" /> <link rel="stylesheet" href="../../_static/colors.css" />
<link rel="stylesheet" href="../../_static/styles/default.css?004b6336c11c17eaf1276de0"> <link rel="stylesheet" href="../../_static/styles/default.css?40f8413cc940e381287df0e7">
<link rel="stylesheet" href="../../_static/pygments.css?004b6336c11c17eaf1276de0"> <link rel="stylesheet" href="../../_static/pygments.css?40f8413cc940e381287df0e7">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../../_static/language_data.js" defer></script> <script src="../../_static/language_data.js" defer></script>
<script src="../../_static/clipboard.min.js"></script> <script src="../../_static/clipboard.min.js"></script>
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?004b6336c11c17eaf1276de0"></script></head> <script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?40f8413cc940e381287df0e7"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../../_static/copybutton.css" /> <link rel="stylesheet" href="../../_static/copybutton.css" />
<link rel="stylesheet" href="../../_static/custom.css" /> <link rel="stylesheet" href="../../_static/custom.css" />
<link rel="stylesheet" href="../../_static/colors.css" /> <link rel="stylesheet" href="../../_static/colors.css" />
<link rel="stylesheet" href="../../_static/styles/default.css?1101f7c25c847cdc1dde4893"> <link rel="stylesheet" href="../../_static/styles/default.css?754b77fee1b1a86631f10e95">
<link rel="stylesheet" href="../../_static/pygments.css?1101f7c25c847cdc1dde4893"> <link rel="stylesheet" href="../../_static/pygments.css?754b77fee1b1a86631f10e95">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../../_static/language_data.js" defer></script> <script src="../../_static/language_data.js" defer></script>
<script src="../../_static/clipboard.min.js"></script> <script src="../../_static/clipboard.min.js"></script>
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?1101f7c25c847cdc1dde4893"></script></head> <script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?754b77fee1b1a86631f10e95"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../../_static/copybutton.css" /> <link rel="stylesheet" href="../../_static/copybutton.css" />
<link rel="stylesheet" href="../../_static/custom.css" /> <link rel="stylesheet" href="../../_static/custom.css" />
<link rel="stylesheet" href="../../_static/colors.css" /> <link rel="stylesheet" href="../../_static/colors.css" />
<link rel="stylesheet" href="../../_static/styles/default.css?8fc191f9d9ad2bee5eaf543a"> <link rel="stylesheet" href="../../_static/styles/default.css?e8df1addbeace136784351d5">
<link rel="stylesheet" href="../../_static/pygments.css?8fc191f9d9ad2bee5eaf543a"> <link rel="stylesheet" href="../../_static/pygments.css?e8df1addbeace136784351d5">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../../_static/language_data.js" defer></script> <script src="../../_static/language_data.js" defer></script>
<script src="../../_static/clipboard.min.js"></script> <script src="../../_static/clipboard.min.js"></script>
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?8fc191f9d9ad2bee5eaf543a"></script></head> <script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?e8df1addbeace136784351d5"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../../_static/copybutton.css" /> <link rel="stylesheet" href="../../_static/copybutton.css" />
<link rel="stylesheet" href="../../_static/custom.css" /> <link rel="stylesheet" href="../../_static/custom.css" />
<link rel="stylesheet" href="../../_static/colors.css" /> <link rel="stylesheet" href="../../_static/colors.css" />
<link rel="stylesheet" href="../../_static/styles/default.css?9822daa5162bf30a5ba8afbb"> <link rel="stylesheet" href="../../_static/styles/default.css?524d830bcd443e39dfc3f7be">
<link rel="stylesheet" href="../../_static/pygments.css?9822daa5162bf30a5ba8afbb"> <link rel="stylesheet" href="../../_static/pygments.css?524d830bcd443e39dfc3f7be">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../../_static/language_data.js" defer></script> <script src="../../_static/language_data.js" defer></script>
<script src="../../_static/clipboard.min.js"></script> <script src="../../_static/clipboard.min.js"></script>
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?9822daa5162bf30a5ba8afbb"></script></head> <script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?524d830bcd443e39dfc3f7be"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="_static/copybutton.css" /> <link rel="stylesheet" href="_static/copybutton.css" />
<link rel="stylesheet" href="_static/custom.css" /> <link rel="stylesheet" href="_static/custom.css" />
<link rel="stylesheet" href="_static/colors.css" /> <link rel="stylesheet" href="_static/colors.css" />
<link rel="stylesheet" href="_static/styles/default.css?895c417175c34426a7c7fe3f"> <link rel="stylesheet" href="_static/styles/default.css?4c00aa05dd32a725d6d2ec1d">
<link rel="stylesheet" href="_static/pygments.css?895c417175c34426a7c7fe3f"> <link rel="stylesheet" href="_static/pygments.css?4c00aa05dd32a725d6d2ec1d">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="_static/language_data.js" defer></script> <script src="_static/language_data.js" defer></script>
<script src="_static/clipboard.min.js"></script> <script src="_static/clipboard.min.js"></script>
<script src="_static/copybutton.js"></script><script src="_static/scripts/main.js?895c417175c34426a7c7fe3f"></script></head> <script src="_static/copybutton.js"></script><script src="_static/scripts/main.js?4c00aa05dd32a725d6d2ec1d"></script></head>
<body dir=""> <body dir="">
</body> </body>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../_static/copybutton.css" /> <link rel="stylesheet" href="../_static/copybutton.css" />
<link rel="stylesheet" href="../_static/custom.css" /> <link rel="stylesheet" href="../_static/custom.css" />
<link rel="stylesheet" href="../_static/colors.css" /> <link rel="stylesheet" href="../_static/colors.css" />
<link rel="stylesheet" href="../_static/styles/default.css?de5a8dca039e1b10a01928e8"> <link rel="stylesheet" href="../_static/styles/default.css?369b503e7dfbf3403704685b">
<link rel="stylesheet" href="../_static/pygments.css?de5a8dca039e1b10a01928e8"> <link rel="stylesheet" href="../_static/pygments.css?369b503e7dfbf3403704685b">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../_static/language_data.js" defer></script> <script src="../_static/language_data.js" defer></script>
<script src="../_static/clipboard.min.js"></script> <script src="../_static/clipboard.min.js"></script>
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?de5a8dca039e1b10a01928e8"></script></head> <script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?369b503e7dfbf3403704685b"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../documentation/custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../_static/copybutton.css" /> <link rel="stylesheet" href="../_static/copybutton.css" />
<link rel="stylesheet" href="../_static/custom.css" /> <link rel="stylesheet" href="../_static/custom.css" />
<link rel="stylesheet" href="../_static/colors.css" /> <link rel="stylesheet" href="../_static/colors.css" />
<link rel="stylesheet" href="../_static/styles/default.css?0b645e7d745443e08f3fd074"> <link rel="stylesheet" href="../_static/styles/default.css?d33dbdb85ca47da91f6ae029">
<link rel="stylesheet" href="../_static/pygments.css?0b645e7d745443e08f3fd074"> <link rel="stylesheet" href="../_static/pygments.css?d33dbdb85ca47da91f6ae029">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../_static/language_data.js" defer></script> <script src="../_static/language_data.js" defer></script>
<script src="../_static/clipboard.min.js"></script> <script src="../_static/clipboard.min.js"></script>
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?0b645e7d745443e08f3fd074"></script></head> <script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?d33dbdb85ca47da91f6ae029"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../documentation/custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>
@ -124,13 +124,15 @@
<h1>CLI flags and configuration<a class="headerlink" href="#cli-flags-and-configuration" title="Permalink to this headline"></a></h1> <h1>CLI flags and configuration<a class="headerlink" href="#cli-flags-and-configuration" title="Permalink to this headline"></a></h1>
<div class="section" id="command-line-interface"> <div class="section" id="command-line-interface">
<h2>Command Line Interface<a class="headerlink" href="#command-line-interface" title="Permalink to this headline"></a></h2> <h2>Command Line Interface<a class="headerlink" href="#command-line-interface" title="Permalink to this headline"></a></h2>
<p>To run manim, you need to enter the directory at the same level as <code class="docutils literal notranslate"><span class="pre">manim.py</span></code> <p>To run manim, you need to enter the directory at the same level as <code class="docutils literal notranslate"><span class="pre">manimlib/</span></code>
and enter the command in the following format into terminal:</p> and enter the command in the following format into terminal:</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>python manim.py &lt;code&gt;.py &lt;Scene&gt; &lt;flags&gt; <div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>manimgl &lt;code&gt;.py &lt;Scene&gt; &lt;flags&gt;
<span class="c1"># or</span>
manim-render &lt;code&gt;.py &lt;Scene&gt; &lt;flags&gt;
</pre></div> </pre></div>
</div> </div>
<ul class="simple"> <ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">&lt;code&gt;.py</span></code> : The python file you wrote. Needs to be at the same level as <code class="docutils literal notranslate"><span class="pre">manim.py</span></code>, otherwise you need to use an absolute path or a relative path.</p></li> <li><p><code class="docutils literal notranslate"><span class="pre">&lt;code&gt;.py</span></code> : The python file you wrote. Needs to be at the same level as <code class="docutils literal notranslate"><span class="pre">manimlib/</span></code>, otherwise you need to use an absolute path or a relative path.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">&lt;Scene&gt;</span></code> : The scene you want to render here. If it is not written or written incorrectly, it will list all for you to choose. And if there is only one <code class="docutils literal notranslate"><span class="pre">Scene</span></code> in the file, this class will be rendered directly.</p></li> <li><p><code class="docutils literal notranslate"><span class="pre">&lt;Scene&gt;</span></code> : The scene you want to render here. If it is not written or written incorrectly, it will list all for you to choose. And if there is only one <code class="docutils literal notranslate"><span class="pre">Scene</span></code> in the file, this class will be rendered directly.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">&lt;flags&gt;</span></code> : CLI flags.</p></li> <li><p><code class="docutils literal notranslate"><span class="pre">&lt;flags&gt;</span></code> : CLI flags.</p></li>
</ul> </ul>
@ -223,31 +225,35 @@ and enter the command in the following format into terminal:</p>
<td></td> <td></td>
<td><p>Show the output file in finder</p></td> <td><p>Show the output file in finder</p></td>
</tr> </tr>
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">--file_name</span> <span class="pre">FILE_NAME</span></code></p></td> <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">--config</span></code></p></td>
<td></td>
<td><p>Guide for automatic configuration</p></td>
</tr>
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">--file_name</span> <span class="pre">FILE_NAME</span></code></p></td>
<td></td> <td></td>
<td><p>Name for the movie or image file</p></td> <td><p>Name for the movie or image file</p></td>
</tr> </tr>
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">--start_at_animation_number</span> <span class="pre">START_AT_ANIMATION_NUMBER</span></code></p></td> <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">--start_at_animation_number</span> <span class="pre">START_AT_ANIMATION_NUMBER</span></code></p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">-n</span></code></p></td> <td><p><code class="docutils literal notranslate"><span class="pre">-n</span></code></p></td>
<td><p>Start rendering not from the first animation, but from another, specified by its index. If you passin two comma separated values, e.g. “3,6”, it will end the rendering at the second value.</p></td> <td><p>Start rendering not from the first animation, but from another, specified by its index. If you passin two comma separated values, e.g. “3,6”, it will end the rendering at the second value.</p></td>
</tr> </tr>
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">--resolution</span> <span class="pre">RESOLUTION</span></code></p></td> <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">--resolution</span> <span class="pre">RESOLUTION</span></code></p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">-r</span></code></p></td> <td><p><code class="docutils literal notranslate"><span class="pre">-r</span></code></p></td>
<td><p>Resolution, passed as “WxH”, e.g. “1920x1080”</p></td> <td><p>Resolution, passed as “WxH”, e.g. “1920x1080”</p></td>
</tr> </tr>
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">--frame_rate</span> <span class="pre">FRAME_RATE</span></code></p></td> <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">--frame_rate</span> <span class="pre">FRAME_RATE</span></code></p></td>
<td></td> <td></td>
<td><p>Frame rate, as an integer</p></td> <td><p>Frame rate, as an integer</p></td>
</tr> </tr>
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">--color</span> <span class="pre">COLOR</span></code></p></td> <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">--color</span> <span class="pre">COLOR</span></code></p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">-c</span></code></p></td> <td><p><code class="docutils literal notranslate"><span class="pre">-c</span></code></p></td>
<td><p>Background color</p></td> <td><p>Background color</p></td>
</tr> </tr>
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">--leave_progress_bars</span></code></p></td> <tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">--leave_progress_bars</span></code></p></td>
<td></td> <td></td>
<td><p>Leave progress bars displayed in terminal</p></td> <td><p>Leave progress bars displayed in terminal</p></td>
</tr> </tr>
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">--video_dir</span> <span class="pre">VIDEO_DIR</span></code></p></td> <tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">--video_dir</span> <span class="pre">VIDEO_DIR</span></code></p></td>
<td></td> <td></td>
<td><p>directory to write video</p></td> <td><p>directory to write video</p></td>
</tr> </tr>
@ -255,28 +261,28 @@ and enter the command in the following format into terminal:</p>
</table></div> </table></div>
</div> </div>
</div> </div>
<div class="section" id="custom-default"> <div class="section" id="custom-config">
<h2>custom_default<a class="headerlink" href="#custom-default" title="Permalink to this headline"></a></h2> <h2>custom_config<a class="headerlink" href="#custom-config" title="Permalink to this headline"></a></h2>
<p>In order to perform more configuration (about directories, etc.) and permanently <p>In order to perform more configuration (about directories, etc.) and permanently
change the default value (you dont have to add flags to the command every time), change the default value (you dont have to add flags to the command every time),
you can modify <code class="docutils literal notranslate"><span class="pre">custom_default.yml</span></code>. The meaning of each option is in you can modify <code class="docutils literal notranslate"><span class="pre">custom_config.yml</span></code>. The meaning of each option is in
page <a class="reference internal" href="../documentation/custom_default.html"><span class="doc">custom_default</span></a>.</p> page <a class="reference internal" href="../documentation/custom_config.html"><span class="doc">custom_config</span></a>.</p>
<p>You can also use different <code class="docutils literal notranslate"><span class="pre">custom_default.yml</span></code> for different directories, such as <p>You can also use different <code class="docutils literal notranslate"><span class="pre">custom_config.yml</span></code> for different directories, such as
following the directory structure:</p> following the directory structure:</p>
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>manim/ <div class="highlight-text notranslate"><div class="highlight"><pre><span></span>manim/
├── manimlib/ ├── manimlib/
│ ├── animation/ │ ├── animation/
│ ├── ... │ ├── ...
│ ├── default_config.yml
│ └── window.py │ └── window.py
├── project/ ├── project/
│ ├── code.py │ ├── code.py
│ └── custom_default.yml │ └── custom_config.yml
├── custom_default.yml └── custom_config.yml
└── manim.py
</pre></div> </pre></div>
</div> </div>
<p>When you enter the <code class="docutils literal notranslate"><span class="pre">project/</span></code> folder and run <code class="docutils literal notranslate"><span class="pre">python</span> <span class="pre">../manim.py</span> <span class="pre">code.py</span> <span class="pre">&lt;Scene&gt;</span></code>, <p>When you enter the <code class="docutils literal notranslate"><span class="pre">project/</span></code> folder and run <code class="docutils literal notranslate"><span class="pre">manimgl</span> <span class="pre">code.py</span> <span class="pre">&lt;Scene&gt;</span></code>,
it will overwrite <code class="docutils literal notranslate"><span class="pre">manim/custom_default.yml</span></code> with <code class="docutils literal notranslate"><span class="pre">custom_default.yml</span></code> it will overwrite <code class="docutils literal notranslate"><span class="pre">manim/custom_config.yml</span></code> with <code class="docutils literal notranslate"><span class="pre">custom_config.yml</span></code>
in the <code class="docutils literal notranslate"><span class="pre">project</span></code> folder.</p> in the <code class="docutils literal notranslate"><span class="pre">project</span></code> folder.</p>
</div> </div>
</div> </div>
@ -333,7 +339,7 @@ in the <code class="docutils literal notranslate"><span class="pre">project</spa
<li><a class="reference internal" href="#all-supported-flags">All supported flags</a></li> <li><a class="reference internal" href="#all-supported-flags">All supported flags</a></li>
</ul> </ul>
</li> </li>
<li><a class="reference internal" href="#custom-default">custom_default</a></li> <li><a class="reference internal" href="#custom-config">custom_config</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../_static/copybutton.css" /> <link rel="stylesheet" href="../_static/copybutton.css" />
<link rel="stylesheet" href="../_static/custom.css" /> <link rel="stylesheet" href="../_static/custom.css" />
<link rel="stylesheet" href="../_static/colors.css" /> <link rel="stylesheet" href="../_static/colors.css" />
<link rel="stylesheet" href="../_static/styles/default.css?0943760b8f2b83ffdc426719"> <link rel="stylesheet" href="../_static/styles/default.css?6f00c6efc9be691855f0d2dd">
<link rel="stylesheet" href="../_static/pygments.css?0943760b8f2b83ffdc426719"> <link rel="stylesheet" href="../_static/pygments.css?6f00c6efc9be691855f0d2dd">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../_static/language_data.js" defer></script> <script src="../_static/language_data.js" defer></script>
<script src="../_static/clipboard.min.js"></script> <script src="../_static/clipboard.min.js"></script>
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?0943760b8f2b83ffdc426719"></script></head> <script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?6f00c6efc9be691855f0d2dd"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../documentation/custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>
@ -127,7 +127,7 @@ Many example scenes are given in <code class="docutils literal notranslate"><spa
the simplest and one by one.</p> the simplest and one by one.</p>
<div class="section" id="interactivedevlopment"> <div class="section" id="interactivedevlopment">
<h2>InteractiveDevlopment<a class="headerlink" href="#interactivedevlopment" title="Permalink to this headline"></a></h2> <h2>InteractiveDevlopment<a class="headerlink" href="#interactivedevlopment" title="Permalink to this headline"></a></h2>
<div class="manim-example"><video autoplay="" class="manim-video" controls="" id="interactivedevlopment" loop="" src="../_static/example_scenes/InteractiveDevlopment.mp4"></video><h5 class="example-header">InteractiveDevlopment<a class="headerlink" href="#interactivedevlopment"></a></h5><div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">manimlib.imports</span> <span class="kn">import</span> <span class="o">*</span> <div class="manim-example"><video autoplay="" class="manim-video" controls="" id="interactivedevlopment" loop="" src="../_static/example_scenes/InteractiveDevlopment.mp4"></video><h5 class="example-header">InteractiveDevlopment<a class="headerlink" href="#interactivedevlopment"></a></h5><div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">manimlib</span> <span class="kn">import</span> <span class="o">*</span>
<span class="k">class</span> <span class="nc">InteractiveDevlopment</span><span class="p">(</span><span class="n">Scene</span><span class="p">):</span> <span class="k">class</span> <span class="nc">InteractiveDevlopment</span><span class="p">(</span><span class="n">Scene</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">construct</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">def</span> <span class="nf">construct</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
@ -672,7 +672,7 @@ and <code class="docutils literal notranslate"><span class="pre">TransformMatchi
<span class="c1"># be interpreted as the side towards the light, and away from</span> <span class="c1"># be interpreted as the side towards the light, and away from</span>
<span class="c1"># the light. These can be either urls, or paths to a local file</span> <span class="c1"># the light. These can be either urls, or paths to a local file</span>
<span class="c1"># in whatever you've set as the image directory in</span> <span class="c1"># in whatever you've set as the image directory in</span>
<span class="c1"># the custom_defaults.yml file</span> <span class="c1"># the custom_config.yml file</span>
<span class="c1"># day_texture = "EarthTextureMap"</span> <span class="c1"># day_texture = "EarthTextureMap"</span>
<span class="c1"># night_texture = "NightEarthTextureMap"</span> <span class="c1"># night_texture = "NightEarthTextureMap"</span>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../_static/copybutton.css" /> <link rel="stylesheet" href="../_static/copybutton.css" />
<link rel="stylesheet" href="../_static/custom.css" /> <link rel="stylesheet" href="../_static/custom.css" />
<link rel="stylesheet" href="../_static/colors.css" /> <link rel="stylesheet" href="../_static/colors.css" />
<link rel="stylesheet" href="../_static/styles/default.css?3a7000cf3da6346237c09a7d"> <link rel="stylesheet" href="../_static/styles/default.css?ef0fa670e28e2184c24c8e13">
<link rel="stylesheet" href="../_static/pygments.css?3a7000cf3da6346237c09a7d"> <link rel="stylesheet" href="../_static/pygments.css?ef0fa670e28e2184c24c8e13">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../_static/language_data.js" defer></script> <script src="../_static/language_data.js" defer></script>
<script src="../_static/clipboard.min.js"></script> <script src="../_static/clipboard.min.js"></script>
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?3a7000cf3da6346237c09a7d"></script></head> <script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?ef0fa670e28e2184c24c8e13"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../documentation/custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>
@ -135,10 +135,12 @@
<p>If you want to hack on manimlib itself, clone this repository and in <p>If you want to hack on manimlib itself, clone this repository and in
that directory execute:</p> that directory execute:</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span><span class="c1"># Install python requirements</span> <div class="highlight-sh notranslate"><div class="highlight"><pre><span></span><span class="c1"># Install python requirements</span>
pip install -r requirements.txt pip install -e .
<span class="c1"># Try it out</span> <span class="c1"># Try it out</span>
python -m manim example_scenes.py OpeningManimExample manimgl example_scenes.py OpeningManimExample
<span class="c1"># or</span>
manim-render example_scenes.py OpeningManimExample
</pre></div> </pre></div>
</div> </div>
<p>If you run the above command and no error message appears, <p>If you run the above command and no error message appears,
@ -155,8 +157,8 @@ FFmpeg</a>, and make sure that its path is in the PATH environment variable.</p>
</ol> </ol>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>git clone https://github.com/3b1b/manim.git <div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>git clone https://github.com/3b1b/manim.git
<span class="nb">cd</span> manim <span class="nb">cd</span> manim
pip install -r requirements.txt pip install -e .
python manim.py example_scenes.py OpeningManimExample manimgl example_scenes.py OpeningManimExample
</pre></div> </pre></div>
</div> </div>
</div> </div>
@ -168,16 +170,9 @@ python manim.py example_scenes.py OpeningManimExample
</ul> </ul>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>git clone https://github.com/3b1b/manim.git <div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>git clone https://github.com/3b1b/manim.git
<span class="nb">cd</span> manim <span class="nb">cd</span> manim
conda env create -f environment.yml conda create -n manim <span class="nv">python</span><span class="o">=</span><span class="m">3</span>.8
</pre></div> conda activate manim
</div> pip install -e .
</div>
<div class="section" id="using-virtualenv-and-virtualenvwrapper">
<h2>Using virtualenv and virtualenvwrapper<a class="headerlink" href="#using-virtualenv-and-virtualenvwrapper" title="Permalink to this headline"></a></h2>
<p>After installing <code class="docutils literal notranslate"><span class="pre">virtualenv</span></code> and <code class="docutils literal notranslate"><span class="pre">virtualenvwrapper</span></code></p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>git clone https://github.com/3b1b/manim.git
mkvirtualenv -a manim -r requirements.txt manim
python -m manim example_scenes.py OpeningManimExample
</pre></div> </pre></div>
</div> </div>
</div> </div>
@ -233,7 +228,6 @@ python -m manim example_scenes.py OpeningManimExample
<li><a class="reference internal" href="#directly">Directly</a></li> <li><a class="reference internal" href="#directly">Directly</a></li>
<li><a class="reference internal" href="#directly-windows">Directly (Windows)</a></li> <li><a class="reference internal" href="#directly-windows">Directly (Windows)</a></li>
<li><a class="reference internal" href="#for-anaconda">For Anaconda</a></li> <li><a class="reference internal" href="#for-anaconda">For Anaconda</a></li>
<li><a class="reference internal" href="#using-virtualenv-and-virtualenvwrapper">Using virtualenv and virtualenvwrapper</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../_static/copybutton.css" /> <link rel="stylesheet" href="../_static/copybutton.css" />
<link rel="stylesheet" href="../_static/custom.css" /> <link rel="stylesheet" href="../_static/custom.css" />
<link rel="stylesheet" href="../_static/colors.css" /> <link rel="stylesheet" href="../_static/colors.css" />
<link rel="stylesheet" href="../_static/styles/default.css?619fcc9ef56c0b82c2cda521"> <link rel="stylesheet" href="../_static/styles/default.css?2ce16e728d6585000415ac61">
<link rel="stylesheet" href="../_static/pygments.css?619fcc9ef56c0b82c2cda521"> <link rel="stylesheet" href="../_static/pygments.css?2ce16e728d6585000415ac61">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../_static/language_data.js" defer></script> <script src="../_static/language_data.js" defer></script>
<script src="../_static/clipboard.min.js"></script> <script src="../_static/clipboard.min.js"></script>
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?619fcc9ef56c0b82c2cda521"></script></head> <script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?2ce16e728d6585000415ac61"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../documentation/custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>
@ -130,9 +130,9 @@ directory structure:</p>
├── manimlib/ ├── manimlib/
│ ├── animation/ │ ├── animation/
│ ├── ... │ ├── ...
│ ├── default_config.yml
│ └── window.py │ └── window.py
├── custom_default.yml ├── custom_config.yml
├── manim.py
<span class="hll">└── start.py <span class="hll">└── start.py
</span></pre></div> </span></pre></div>
</div> </div>
@ -145,7 +145,7 @@ directory structure:</p>
6 6
7 7
8 8
9</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">manimlib.imports</span> <span class="kn">import</span> <span class="o">*</span> 9</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">manimlib</span> <span class="kn">import</span> <span class="o">*</span>
<span class="k">class</span> <span class="nc">SquareToCircle</span><span class="p">(</span><span class="n">Scene</span><span class="p">):</span> <span class="k">class</span> <span class="nc">SquareToCircle</span><span class="p">(</span><span class="n">Scene</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">construct</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">def</span> <span class="nf">construct</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
@ -157,7 +157,7 @@ directory structure:</p>
</pre></div> </pre></div>
</td></tr></table></div></div> </td></tr></table></div></div>
<p>And run this command:</p> <p>And run this command:</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>python manim.py start.py SquareToCircle <div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>manimgl start.py SquareToCircle
</pre></div> </pre></div>
</div> </div>
<p>A window will pop up on the screen. And then you can :</p> <p>A window will pop up on the screen. And then you can :</p>
@ -169,7 +169,7 @@ directory structure:</p>
</ul> </ul>
<p>Finally, you can close the window and exit the program by pressing <kbd class="kbd docutils literal notranslate">q</kbd>.</p> <p>Finally, you can close the window and exit the program by pressing <kbd class="kbd docutils literal notranslate">q</kbd>.</p>
<p>Run this command again:</p> <p>Run this command again:</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>python manim.py start.py SquareToCircle -os <div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>manimgl start.py SquareToCircle -os
</pre></div> </pre></div>
</div> </div>
<p>At this time, no window will pop up. When the program is finished, this rendered <p>At this time, no window will pop up. When the program is finished, this rendered
@ -180,10 +180,19 @@ level directory of <code class="docutils literal notranslate"><span class="pre">
<h2>Make an image<a class="headerlink" href="#make-an-image" title="Permalink to this headline"></a></h2> <h2>Make an image<a class="headerlink" href="#make-an-image" title="Permalink to this headline"></a></h2>
<p>Next, lets take a detailed look at what each row does.</p> <p>Next, lets take a detailed look at what each row does.</p>
<p><strong>Line 1</strong>:</p> <p><strong>Line 1</strong>:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">manimlib.imports</span> <span class="kn">import</span> <span class="o">*</span> <div class="highlight-python notranslate"><div class="highlight"><pre><span></span>
</pre></div> </pre></div>
</div> </div>
<p>This will import all the classes that may be used when using manim.</p> <p>&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD</p>
<blockquote>
<div><p>from manimlib.imports import *</p>
</div></blockquote>
<hr class="docutils"/>
<blockquote>
<div><p>from manimlib import *</p>
</div></blockquote>
<p>&gt;&gt;&gt;&gt;&gt;&gt;&gt; TonyCrane-package-improve
This will import all the classes that may be used when using manim.</p>
<p><strong>Line 3</strong>:</p> <p><strong>Line 3</strong>:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">SquareToCircle</span><span class="p">(</span><span class="n">Scene</span><span class="p">):</span> <div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">SquareToCircle</span><span class="p">(</span><span class="n">Scene</span><span class="p">):</span>
</pre></div> </pre></div>
@ -232,7 +241,7 @@ how to create the mobjects in the screen and what operations need to be performe
10 10
11 11
12 12
13</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">manimlib.imports</span> <span class="kn">import</span> <span class="o">*</span> 13</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">manimlib</span> <span class="kn">import</span> <span class="o">*</span>
<span class="k">class</span> <span class="nc">SquareToCircle</span><span class="p">(</span><span class="n">Scene</span><span class="p">):</span> <span class="k">class</span> <span class="nc">SquareToCircle</span><span class="p">(</span><span class="n">Scene</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">construct</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">def</span> <span class="nf">construct</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
@ -248,12 +257,12 @@ how to create the mobjects in the screen and what operations need to be performe
</pre></div> </pre></div>
</td></tr></table></div></div> </td></tr></table></div></div>
<p>Run this command this time:</p> <p>Run this command this time:</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>python manim.py start.py SquareToCircle <div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>manimgl start.py SquareToCircle
</pre></div> </pre></div>
</div> </div>
<p>The pop-up window will play animations of drawing a square and transforming <p>The pop-up window will play animations of drawing a square and transforming
it into a circle. If you want to save this video, run:</p> it into a circle. If you want to save this video, run:</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>python manim.py start.py SquareToCircle -ow <div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>manimgl start.py SquareToCircle -o
</pre></div> </pre></div>
</div> </div>
<p>This time there will be no pop-up window, but the video file (saved in the subdirectory <p>This time there will be no pop-up window, but the video file (saved in the subdirectory
@ -290,7 +299,11 @@ at the end of the code to enable interaction:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="bp">self</span><span class="o">.</span><span class="n">embed</span><span class="p">()</span> <div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="bp">self</span><span class="o">.</span><span class="n">embed</span><span class="p">()</span>
</pre></div> </pre></div>
</div> </div>
<p>Then run <code class="docutils literal notranslate"><span class="pre">python</span> <span class="pre">manim.py</span> <span class="pre">start.py</span> <span class="pre">SquareToCircle</span></code>.</p> <p>&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD
Then run <code class="docutils literal notranslate"><span class="pre">python</span> <span class="pre">manim.py</span> <span class="pre">start.py</span> <span class="pre">SquareToCircle</span></code>.
=======
Then run <code class="docutils literal notranslate"><span class="pre">manimgl</span> <span class="pre">start.py</span> <span class="pre">SquareToCircle</span></code>.
&gt;&gt;&gt;&gt;&gt;&gt;&gt; TonyCrane-package-improve</p>
<p>After the previous animation is executed, the ipython terminal will be opened on <p>After the previous animation is executed, the ipython terminal will be opened on
the command line. After that, you can continue to write code in it, and the statement the command line. After that, you can continue to write code in it, and the statement
you entered will be executed immediately after pressing <kbd class="kbd docutils literal notranslate">Enter</kbd>.</p> you entered will be executed immediately after pressing <kbd class="kbd docutils literal notranslate">Enter</kbd>.</p>
@ -314,7 +327,7 @@ you entered will be executed immediately after pressing <kbd class="kbd docutils
<video autoplay="" class="manim-video" controls="" loop="" src="../_static/quickstart/SquareToCircleEmbed.mp4"></video><p>If you want to enter the interactive mode directly, you dont have to write an <video autoplay="" class="manim-video" controls="" loop="" src="../_static/quickstart/SquareToCircleEmbed.mp4"></video><p>If you want to enter the interactive mode directly, you dont have to write an
empty scene containing only <code class="docutils literal notranslate"><span class="pre">self.embed()</span></code>, you can directly run the following command empty scene containing only <code class="docutils literal notranslate"><span class="pre">self.embed()</span></code>, you can directly run the following command
(this will enter the ipython terminal while the window pops up):</p> (this will enter the ipython terminal while the window pops up):</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>python manim.py <div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>manimgl
</pre></div> </pre></div>
</div> </div>
</div> </div>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../_static/copybutton.css" /> <link rel="stylesheet" href="../_static/copybutton.css" />
<link rel="stylesheet" href="../_static/custom.css" /> <link rel="stylesheet" href="../_static/custom.css" />
<link rel="stylesheet" href="../_static/colors.css" /> <link rel="stylesheet" href="../_static/colors.css" />
<link rel="stylesheet" href="../_static/styles/default.css?6f78e96102033e2731ec7d6b"> <link rel="stylesheet" href="../_static/styles/default.css?fe1bfc1f8f3f3ec774e28d83">
<link rel="stylesheet" href="../_static/pygments.css?6f78e96102033e2731ec7d6b"> <link rel="stylesheet" href="../_static/pygments.css?fe1bfc1f8f3f3ec774e28d83">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../_static/language_data.js" defer></script> <script src="../_static/language_data.js" defer></script>
<script src="../_static/clipboard.min.js"></script> <script src="../_static/clipboard.min.js"></script>
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?6f78e96102033e2731ec7d6b"></script></head> <script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?fe1bfc1f8f3f3ec774e28d83"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../documentation/custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>
@ -127,107 +127,105 @@
<p>The manim directory looks very complicated, with a lot of files, <p>The manim directory looks very complicated, with a lot of files,
but the structure is clear.</p> but the structure is clear.</p>
<p>Below is the directory structure of manim:</p> <p>Below is the directory structure of manim:</p>
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>├── manim.py # Manim command entry <div class="highlight-text notranslate"><div class="highlight"><pre><span></span>manimlib/ # manim library
├── custom_default.yml # Default configuration ├── __init__.py
└── manimlib/ # manim library ├── __main__.py
├── __init__.py # run from here ├── default_config.yml # Default configuration file
├── config.py # Process CLI flags ├── config.py # Process CLI flags
├── constants.py # Defined some constants ├── constants.py # Defined some constants
├── extract_scene.py # Extract and run the scene ├── extract_scene.py # Extract and run the scene
├── imports.py # Import all required files in manimlib ├── shader_wrapper.py # Shaders' Wrapper for convenient control
├── shader_wrapper.py # Shaders' Wrapper for convenient control ├── window.py # Playback window
├── window.py # Playback window ├── tex_templates/ # Templates preset for LaTeX
├── tex_templates/ # Templates preset for LaTeX │ ├── tex_templates.tex # Tex template (will be compiled with latex, default)
│ ├── tex_templates.tex # Tex template (will be compiled with latex, default) │ └── ctex_templates.tex # Tex template that support Chinese (will be compiled with xelatex)
│ └── ctex_templates.tex # Tex template that support Chinese (will be compiled with xelatex) ├── camera/
├── camera/ │ └── camera.py # Including Camera and CameraFrame
│ └── camera.py # Including Camera and CameraFrame ├── scene/
├── scene/ │ ├── scene_file_writer.py # Used to write scene to video file
│ ├── scene_file_writer.py # Used to write scene to video file │ ├── scene.py # The basic Scene class
│ ├── scene.py # The basic Scene class │ ├── three_d_scene.py # Three-dimensional scene
│ ├── three_d_scene.py # Three-dimensional scene │ ├── sample_space_scene.py # Probability related sample space scene
│ ├── graph_scene.py # GraphScene (with coordinate axis) │ └── vector_space_scene.py # Vector field scene
│ ├── reconfigurable_scene.py ├── animation/
│ ├── sample_space_scene.py # Probability related sample space scene │ ├── animation.py # The basic class of animation
│ └── vector_space_scene.py # Vector field scene │ ├── composition.py # Animation group
├── animation/ │ ├── creation.py # Animation related to Create
│ ├── animation.py # The basic class of animation │ ├── fading.py # Fade related animation
│ ├── composition.py # Animation group │ ├── growing.py # Animation related to Grow
│ ├── creation.py # Animation related to Create │ ├── indication.py # Some animations for emphasis
│ ├── fading.py # Fade related animation │ ├── movement.py # Animation related to movement
│ ├── growing.py # Animation related to Grow │ ├── numbers.py # Realize changes to DecimalNumber
│ ├── indication.py # Some animations for emphasis │ ├── rotation.py # Animation related to rotation
│ ├── movement.py # Animation related to movement │ ├── specialized.py # Some uncommon animations for special projects
│ ├── numbers.py # Realize changes to DecimalNumber │ ├── transform_matching_parts.py # Transform which can automatically match parts
│ ├── rotation.py # Animation related to rotation │ ├── transform.py # Some Transforms
│ ├── specialized.py # Some uncommon animations for special projects │ └── update.py # Realize update from function
│ ├── transform_matching_parts.py # Transform which can automatically match parts ├── mobject/
│ ├── transform.py # Some Transforms │ ├── mobject.py # The basic class of all math object
│ └── update.py # Realize update from function │ ├── types/ # 4 types of mobject
├── mobject/ │ │ ├── dot_cloud.py # Dot cloud (an subclass of PMobject)
│ ├── mobject.py # The basic class of all math object │ │ ├── image_mobject.py # Insert pictures
│ ├── types/ # 4 types of mobject │ │ ├── point_cloud_mobject.py # PMobject (mobject composed of points)
│ │ ├── dot_cloud.py # Dot cloud (an subclass of PMobject) │ │ ├── surface.py # ParametricSurface
│ │ ├── image_mobject.py # Insert pictures │ │ └── vectorized_mobject.py # VMobject (vectorized mobject)
│ │ ├── point_cloud_mobject.py # PMobject (mobject composed of points) │ ├── svg/ # mobject related to svg
│ │ ├── surface.py # ParametricSurface │ │ ├── svg_mobject.py # SVGMobject
│ │ └── vectorized_mobject.py # VMobject (vectorized mobject) │ │ ├── brace.py # Brace
│ ├── svg/ # mobject related to svg │ │ ├── drawings.py # Some special mobject of svg image
│ │ ├── svg_mobject.py # SVGMobject │ │ ├── tex_mobject.py # Tex and TexText implemented by LaTeX
│ │ ├── brace.py # Brace │ │ └── text_mobject.py # Text implemented by cairo
│ │ ├── drawings.py # Some special mobject of svg image │ ├── changing.py # Dynamically changing mobject
│ │ ├── tex_mobject.py # Tex and TexText implemented by LaTeX │ ├── coordinate_systems.py # coordinate system
│ │ └── text_mobject.py # Text implemented by cairo │ ├── frame.py # mobject related to frame
│ ├── changing.py # Dynamically changing mobject │ ├── functions.py # ParametricFunction
│ ├── coordinate_systems.py # coordinate system │ ├── geometry.py # geometry mobjects
│ ├── frame.py # mobject related to frame │ ├── matrix.py # matrix
│ ├── functions.py # ParametricFunction │ ├── mobject_update_utils.py # some defined updater
│ ├── geometry.py # geometry mobjects │ ├── number_line.py # Number line
│ ├── matrix.py # matrix │ ├── numbers.py # Numbers that can be changed
│ ├── mobject_update_utils.py # some defined updater │ ├── probability.py # mobject related to probability
│ ├── number_line.py # Number line │ ├── shape_matchers.py # mobject adapted to the size of other objects
│ ├── numbers.py # Numbers that can be changed │ ├── three_dimensions.py # Three-dimensional objects
│ ├── probability.py # mobject related to probability │ ├── value_tracker.py # ValueTracker which storage number
│ ├── shape_matchers.py # mobject adapted to the size of other objects │ └── vector_field.py # VectorField
│ ├── three_dimensions.py # Three-dimensional objects ├── once_useful_constructs/ # 3b1b's Common scenes written for some videos
│ ├── value_tracker.py # ValueTracker which storage number │ └── ...
│ └── vector_field.py # VectorField ├── shaders/ # GLSL scripts for rendering
├── once_useful_constructs/ # 3b1b's Common scenes written for some videos │ ├── simple_vert.glsl # a simple glsl script for position
│ └── ... │ ├── insert/ # glsl scripts to be inserted in other glsl scripts
├── shaders/ # GLSL scripts for rendering │ │ ├── NOTE.md # explain how to insert glsl scripts
│ ├── simple_vert.glsl # a simple glsl script for position │ │ └── ... # useful scripts
│ ├── insert/ # glsl scripts to be inserted in other glsl scripts │ ├── image/ # glsl for images
│ │ ├── NOTE.md # explain how to insert glsl scripts │ │ └── ... # containing shaders for vertex and fragment
│ │ └── ... # useful scripts │ ├── quadratic_bezier_fill/ # glsl for the fill of quadratic bezier curve
│ ├── image/ # glsl for images │ │ └── ... # containing shaders for vertex, fragment and geometry
│ │ └── ... # containing shaders for vertex and fragment │ ├── quadratic_bezier_stroke/ # glsl for the stroke of quadratic bezier curve
│ ├── quadratic_bezier_fill/ # glsl for the fill of quadratic bezier curve │ │ └── ... # containing shaders for vertex, fragment and geometry
│ │ └── ... # containing shaders for vertex, fragment and geometry │ ├── surface/ # glsl for surfaces
│ ├── quadratic_bezier_stroke/ # glsl for the stroke of quadratic bezier curve │ │ └── ... # containing shaders for vertex and fragment
│ │ └── ... # containing shaders for vertex, fragment and geometry │ ├── textured_surface/ # glsl for textured_surface
│ ├── surface/ # glsl for surfaces │ │ └── ... # containing shaders for vertex and fragment
│ │ └── ... # containing shaders for vertex and fragment │ └── true_dot/ # glsl for a dot
│ ├── textured_surface/ # glsl for textured_surface │ └── ... # containing shaders for vertex, fragment and geometry
│ │ └── ... # containing shaders for vertex and fragment └── utils/ # Some useful utility functions
│ └── true_dot/ # glsl for a dot ├── bezier.py # For bezier curve
│ └── ... # containing shaders for vertex, fragment and geometry ├── color.py # For color
└── utils/ # Some useful utility functions ├── config_ops.py # Process CONFIG
├── bezier.py # For bezier curve ├── customization.py # Read from custom_config.yml
├── color.py # For color ├── debug.py # Utilities for debugging in program
├── config_ops.py # Process CONFIG ├── family_ops.py # Process family members
├── customization.py # Read from custom_default.yml ├── file_ops.py # Process files and directories
├── debug.py # Utilities for debugging in program ├── images.py # Read image
├── family_ops.py # Process family members ├── init_config.py # Configuration guide
├── file_ops.py # Process files and directories ├── iterables.py # Functions related to list/dictionary processing
├── images.py # Read image ├── paths.py # Curve path
├── iterables.py # Functions related to list/dictionary processing ├── rate_functions.py # Some defined rate_functions
├── paths.py # Curve path ├── simple_functions.py # Some commonly used functions
├── rate_functions.py # Some defined rate_functions ├── sounds.py # Process sounds
├── simple_functions.py # Some commonly used functions ├── space_ops.py # Space coordinate calculation
├── sounds.py # Process sounds ├── strings.py # Process strings
├── space_ops.py # Space coordinate calculation └── tex_file_writing.py # Use LaTeX to write strings as svg
├── strings.py # Process strings
└── tex_file_writing.py # Use LaTeX to write strings as svg
</pre></div> </pre></div>
</div> </div>
</div> </div>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="../_static/copybutton.css" /> <link rel="stylesheet" href="../_static/copybutton.css" />
<link rel="stylesheet" href="../_static/custom.css" /> <link rel="stylesheet" href="../_static/custom.css" />
<link rel="stylesheet" href="../_static/colors.css" /> <link rel="stylesheet" href="../_static/colors.css" />
<link rel="stylesheet" href="../_static/styles/default.css?75c1c558743485bd0bb69b0d"> <link rel="stylesheet" href="../_static/styles/default.css?89299132b055201f07adaa49">
<link rel="stylesheet" href="../_static/pygments.css?75c1c558743485bd0bb69b0d"> <link rel="stylesheet" href="../_static/pygments.css?89299132b055201f07adaa49">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="../_static/language_data.js" defer></script> <script src="../_static/language_data.js" defer></script>
<script src="../_static/clipboard.min.js"></script> <script src="../_static/clipboard.min.js"></script>
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?75c1c558743485bd0bb69b0d"></script></head> <script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?89299132b055201f07adaa49"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="../documentation/custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="../documentation/custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>

View file

@ -8,8 +8,8 @@
<link rel="stylesheet" href="_static/copybutton.css" /> <link rel="stylesheet" href="_static/copybutton.css" />
<link rel="stylesheet" href="_static/custom.css" /> <link rel="stylesheet" href="_static/custom.css" />
<link rel="stylesheet" href="_static/colors.css" /> <link rel="stylesheet" href="_static/colors.css" />
<link rel="stylesheet" href="_static/styles/default.css?2ca5c39dc5c2c93e55816edc"> <link rel="stylesheet" href="_static/styles/default.css?635cf65ef300a7b8723a3bb9">
<link rel="stylesheet" href="_static/pygments.css?2ca5c39dc5c2c93e55816edc"> <link rel="stylesheet" href="_static/pygments.css?635cf65ef300a7b8723a3bb9">
<style> <style>
:root { :root {
@ -26,7 +26,7 @@
<script src="_static/language_data.js" defer></script> <script src="_static/language_data.js" defer></script>
<script src="_static/clipboard.min.js"></script> <script src="_static/clipboard.min.js"></script>
<script src="_static/copybutton.js"></script><script src="_static/scripts/main.js?2ca5c39dc5c2c93e55816edc"></script></head> <script src="_static/copybutton.js"></script><script src="_static/scripts/main.js?635cf65ef300a7b8723a3bb9"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -100,7 +100,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="documentation/constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="documentation/constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="documentation/custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="documentation/custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>
@ -133,7 +133,6 @@ at <a class="reference external" href="https://www.3blue1brown.com/">3Blue1Brown
<li class="toctree-l2"><a class="reference internal" href="getting_started/installation.html#directly">Directly</a></li> <li class="toctree-l2"><a class="reference internal" href="getting_started/installation.html#directly">Directly</a></li>
<li class="toctree-l2"><a class="reference internal" href="getting_started/installation.html#directly-windows">Directly (Windows)</a></li> <li class="toctree-l2"><a class="reference internal" href="getting_started/installation.html#directly-windows">Directly (Windows)</a></li>
<li class="toctree-l2"><a class="reference internal" href="getting_started/installation.html#for-anaconda">For Anaconda</a></li> <li class="toctree-l2"><a class="reference internal" href="getting_started/installation.html#for-anaconda">For Anaconda</a></li>
<li class="toctree-l2"><a class="reference internal" href="getting_started/installation.html#using-virtualenv-and-virtualenvwrapper">Using virtualenv and virtualenvwrapper</a></li>
</ul> </ul>
</li> </li>
<li class="toctree-l1"><a class="reference internal" href="getting_started/quickstart.html">Quick Start</a><ul> <li class="toctree-l1"><a class="reference internal" href="getting_started/quickstart.html">Quick Start</a><ul>
@ -145,7 +144,7 @@ at <a class="reference external" href="https://www.3blue1brown.com/">3Blue1Brown
</li> </li>
<li class="toctree-l1"><a class="reference internal" href="getting_started/configuration.html">CLI flags and configuration</a><ul> <li class="toctree-l1"><a class="reference internal" href="getting_started/configuration.html">CLI flags and configuration</a><ul>
<li class="toctree-l2"><a class="reference internal" href="getting_started/configuration.html#command-line-interface">Command Line Interface</a></li> <li class="toctree-l2"><a class="reference internal" href="getting_started/configuration.html#command-line-interface">Command Line Interface</a></li>
<li class="toctree-l2"><a class="reference internal" href="getting_started/configuration.html#custom-default">custom_default</a></li> <li class="toctree-l2"><a class="reference internal" href="getting_started/configuration.html#custom-config">custom_config</a></li>
</ul> </ul>
</li> </li>
<li class="toctree-l1"><a class="reference internal" href="getting_started/example_scenes.html">Example Scenes</a><ul> <li class="toctree-l1"><a class="reference internal" href="getting_started/example_scenes.html">Example Scenes</a><ul>
@ -192,14 +191,14 @@ at <a class="reference external" href="https://www.3blue1brown.com/">3Blue1Brown
<li class="toctree-l2"><a class="reference internal" href="documentation/constants.html#colours">Colours</a></li> <li class="toctree-l2"><a class="reference internal" href="documentation/constants.html#colours">Colours</a></li>
</ul> </ul>
</li> </li>
<li class="toctree-l1"><a class="reference internal" href="documentation/custom_default.html">custom_default</a><ul> <li class="toctree-l1"><a class="reference internal" href="documentation/custom_config.html">custom_config</a><ul>
<li class="toctree-l2"><a class="reference internal" href="documentation/custom_default.html#directories"><code class="docutils literal notranslate"><span class="pre">directories</span></code></a></li> <li class="toctree-l2"><a class="reference internal" href="documentation/custom_config.html#directories"><code class="docutils literal notranslate"><span class="pre">directories</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="documentation/custom_default.html#tex"><code class="docutils literal notranslate"><span class="pre">tex</span></code></a></li> <li class="toctree-l2"><a class="reference internal" href="documentation/custom_config.html#tex"><code class="docutils literal notranslate"><span class="pre">tex</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="documentation/custom_default.html#universal-import-line"><code class="docutils literal notranslate"><span class="pre">universal_import_line</span></code></a></li> <li class="toctree-l2"><a class="reference internal" href="documentation/custom_config.html#universal-import-line"><code class="docutils literal notranslate"><span class="pre">universal_import_line</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="documentation/custom_default.html#style"><code class="docutils literal notranslate"><span class="pre">style</span></code></a></li> <li class="toctree-l2"><a class="reference internal" href="documentation/custom_config.html#style"><code class="docutils literal notranslate"><span class="pre">style</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="documentation/custom_default.html#window-position"><code class="docutils literal notranslate"><span class="pre">window_position</span></code></a></li> <li class="toctree-l2"><a class="reference internal" href="documentation/custom_config.html#window-position"><code class="docutils literal notranslate"><span class="pre">window_position</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="documentation/custom_default.html#break-into-partial-movies"><code class="docutils literal notranslate"><span class="pre">break_into_partial_movies</span></code></a></li> <li class="toctree-l2"><a class="reference internal" href="documentation/custom_config.html#break-into-partial-movies"><code class="docutils literal notranslate"><span class="pre">break_into_partial_movies</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="documentation/custom_default.html#camera-qualities"><code class="docutils literal notranslate"><span class="pre">camera_qualities</span></code></a></li> <li class="toctree-l2"><a class="reference internal" href="documentation/custom_config.html#camera-qualities"><code class="docutils literal notranslate"><span class="pre">camera_qualities</span></code></a></li>
</ul> </ul>
</li> </li>
</ul> </ul>

Binary file not shown.

View file

@ -6,8 +6,8 @@
<link rel="shortcut icon" href="_static/icon.png"/><meta name="generator" content="sphinx-3.0.3, furo 2020.10.05.beta9"/><title>Search - manim documentation</title><link rel="stylesheet" href="_static/copybutton.css" /> <link rel="shortcut icon" href="_static/icon.png"/><meta name="generator" content="sphinx-3.0.3, furo 2020.10.05.beta9"/><title>Search - manim documentation</title><link rel="stylesheet" href="_static/copybutton.css" />
<link rel="stylesheet" href="_static/custom.css" /> <link rel="stylesheet" href="_static/custom.css" />
<link rel="stylesheet" href="_static/colors.css" /> <link rel="stylesheet" href="_static/colors.css" />
<link rel="stylesheet" href="_static/styles/default.css?4e600ac9486e860fa4b27d15"> <link rel="stylesheet" href="_static/styles/default.css?929735bae0c7af70b5dc311c">
<link rel="stylesheet" href="_static/pygments.css?4e600ac9486e860fa4b27d15"> <link rel="stylesheet" href="_static/pygments.css?929735bae0c7af70b5dc311c">
<style> <style>
:root { :root {
@ -25,7 +25,7 @@
<script src="_static/clipboard.min.js"></script> <script src="_static/clipboard.min.js"></script>
<script src="_static/copybutton.js"></script> <script src="_static/copybutton.js"></script>
<script src="_static/searchtools.js" defer></script><script src="_static/scripts/main.js?4e600ac9486e860fa4b27d15"></script></head> <script src="_static/searchtools.js" defer></script><script src="_static/scripts/main.js?929735bae0c7af70b5dc311c"></script></head>
<body dir=""> <body dir="">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
@ -99,7 +99,7 @@
<p class="caption"><span class="caption-text">Documentation</span></p> <p class="caption"><span class="caption-text">Documentation</span></p>
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="documentation/constants.html">constants</a></li> <li class="toctree-l1"><a class="reference internal" href="documentation/constants.html">constants</a></li>
<li class="toctree-l1"><a class="reference internal" href="documentation/custom_default.html">custom_default</a></li> <li class="toctree-l1"><a class="reference internal" href="documentation/custom_config.html">custom_config</a></li>
</ul> </ul>
<p class="caption"><span class="caption-text">Development</span></p> <p class="caption"><span class="caption-text">Development</span></p>
<ul> <ul>

File diff suppressed because one or more lines are too long