mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
Deploying to gh-pages from @ 44b7d33784b1e80e3c4c44ff3620efaeeffeb3c9 🚀
This commit is contained in:
@ -1,85 +0,0 @@
|
||||
CONFIG dictionary
|
||||
=================
|
||||
|
||||
What's CONFIG
|
||||
-------------
|
||||
|
||||
``CONFIG`` dictionary is a feature of manim, which facilitates the inheritance
|
||||
and modification of parameters between parent and child classes.
|
||||
|
||||
| ``CONFIG`` dictionary 's processing is in ``manimlib/utils/dict_ops.py``
|
||||
| It can convert the key-value pairs in the ``CONFIG`` dictionary into class attributes and values
|
||||
|
||||
Generally, the first line of the ``.__init__()`` method in some basic class (``Mobject``, ``Animation``,
|
||||
etc.) will call this function ``digest_config(self, kwargs)`` to convert both
|
||||
the ``CONFIG`` dictionary and ``kwargs`` into attributes. Then it can be accessed
|
||||
directly through ``self.``, which simplifies the handling of inheritance between classes.
|
||||
|
||||
**An example**:
|
||||
|
||||
There are many class inheritance relationships in ``manimlib/mobject/geometry.py``
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
# Line 279
|
||||
class Circle(Arc):
|
||||
CONFIG = {
|
||||
"color": RED,
|
||||
"close_new_points": True,
|
||||
"anchors_span_full_range": False
|
||||
}
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
# Line 304
|
||||
class Dot(Circle):
|
||||
CONFIG = {
|
||||
"radius": DEFAULT_DOT_RADIUS,
|
||||
"stroke_width": 0,
|
||||
"fill_opacity": 1.0,
|
||||
"color": WHITE
|
||||
}
|
||||
|
||||
The ``Circle`` class uses the key-value pair ``"color": RED`` in the ``CONFIG``
|
||||
dictionary to add the attribute ``self.color``.
|
||||
|
||||
At the same time, the ``Dot`` class also contains the key ``color`` in the
|
||||
``CONFIG`` dictionary, but the value is different. At this time, the priority will
|
||||
modify the attribute ``self.color`` to ``WHITE``.
|
||||
|
||||
CONFIG nesting
|
||||
--------------
|
||||
|
||||
The ``CONFIG`` dictionary supports nesting, that is, the value of the key is also
|
||||
a dictionary, for example:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
class Camera(object):
|
||||
CONFIG = {
|
||||
# configs
|
||||
}
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
class Scene(object):
|
||||
CONFIG = {
|
||||
"window_config": {},
|
||||
"camera_class": Camera,
|
||||
"camera_config": {},
|
||||
"file_writer_config": {},
|
||||
# other configs
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
digest_config(self, kwargs)
|
||||
# some lines
|
||||
self.camera = self.camera_class(**self.camera_config)
|
||||
|
||||
The ``CONFIG`` dictionary of the ``Camera`` class contains many key-value pairs,
|
||||
and this class needs to be instantiated in the ``Scene`` class. For more convenient
|
||||
control, there is a special key-value pair in the Scene class ``"camera_config": {}``,
|
||||
Its value is a dictionary, passed in as ``kwargs`` when initializing the ``Camera`` class
|
||||
to modify the value of the properties of the ``Camera`` class.
|
||||
|
||||
So the nesting of the ``CONFIG`` dictionary **essentially** passes in the value as ``kwargs``.
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?4f52093cb5952df5fb2de0bc">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?4f52093cb5952df5fb2de0bc">
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?0fde917558da7828b9079ce4">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?0fde917558da7828b9079ce4">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../_static/clipboard.min.js"></script>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?4f52093cb5952df5fb2de0bc"></script></head>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?0fde917558da7828b9079ce4"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?ee8d69519285f5d5f54a14e0">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?ee8d69519285f5d5f54a14e0">
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?e8414c35a4f505f7b0d84c71">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?e8414c35a4f505f7b0d84c71">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../_static/clipboard.min.js"></script>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?ee8d69519285f5d5f54a14e0"></script></head>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?e8414c35a4f505f7b0d84c71"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?a070a6a55ca73ae186243898">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?a070a6a55ca73ae186243898">
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?6c8efddb2bedfe5f3eb04c08">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?6c8efddb2bedfe5f3eb04c08">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../_static/clipboard.min.js"></script>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?a070a6a55ca73ae186243898"></script></head>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?6c8efddb2bedfe5f3eb04c08"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../../_static/styles/default.css?fef1ba47714792015c76de8f">
|
||||
<link rel="stylesheet" href="../../_static/pygments.css?fef1ba47714792015c76de8f">
|
||||
<link rel="stylesheet" href="../../_static/styles/default.css?fbdb45e6fa90ca29526c178b">
|
||||
<link rel="stylesheet" href="../../_static/pygments.css?fbdb45e6fa90ca29526c178b">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../../_static/clipboard.min.js"></script>
|
||||
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?fef1ba47714792015c76de8f"></script></head>
|
||||
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?fbdb45e6fa90ca29526c178b"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../../_static/styles/default.css?97a55c72a9f12f59635453be">
|
||||
<link rel="stylesheet" href="../../_static/pygments.css?97a55c72a9f12f59635453be">
|
||||
<link rel="stylesheet" href="../../_static/styles/default.css?bf1925365d9e683284f7641c">
|
||||
<link rel="stylesheet" href="../../_static/pygments.css?bf1925365d9e683284f7641c">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../../_static/clipboard.min.js"></script>
|
||||
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?97a55c72a9f12f59635453be"></script></head>
|
||||
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?bf1925365d9e683284f7641c"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?ed632516507aa102039f6079">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?ed632516507aa102039f6079">
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?4fa8fcf2f8e0d51256945ce7">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?4fa8fcf2f8e0d51256945ce7">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../_static/clipboard.min.js"></script>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?ed632516507aa102039f6079"></script></head>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?4fa8fcf2f8e0d51256945ce7"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?23e12ace07a238673f056467">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?23e12ace07a238673f056467">
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?b2edcacb570346c0e7b0d7b6">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?b2edcacb570346c0e7b0d7b6">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../_static/clipboard.min.js"></script>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?23e12ace07a238673f056467"></script></head>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?b2edcacb570346c0e7b0d7b6"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../getting_started/whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../../_static/styles/default.css?fc82ed34f137514bad133a7e">
|
||||
<link rel="stylesheet" href="../../_static/pygments.css?fc82ed34f137514bad133a7e">
|
||||
<link rel="stylesheet" href="../../_static/styles/default.css?9d07b436493e51c8bee57fcb">
|
||||
<link rel="stylesheet" href="../../_static/pygments.css?9d07b436493e51c8bee57fcb">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../../_static/clipboard.min.js"></script>
|
||||
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?fc82ed34f137514bad133a7e"></script></head>
|
||||
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?9d07b436493e51c8bee57fcb"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../../_static/styles/default.css?7892a50dad579eddf01418e6">
|
||||
<link rel="stylesheet" href="../../_static/pygments.css?7892a50dad579eddf01418e6">
|
||||
<link rel="stylesheet" href="../../_static/styles/default.css?6f18f71d6cc72a8f1aab10de">
|
||||
<link rel="stylesheet" href="../../_static/pygments.css?6f18f71d6cc72a8f1aab10de">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../../_static/clipboard.min.js"></script>
|
||||
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?7892a50dad579eddf01418e6"></script></head>
|
||||
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?6f18f71d6cc72a8f1aab10de"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../../_static/styles/default.css?9c377408b2e4ad0ff803ec05">
|
||||
<link rel="stylesheet" href="../../_static/pygments.css?9c377408b2e4ad0ff803ec05">
|
||||
<link rel="stylesheet" href="../../_static/styles/default.css?821d5707ec5117c103dd5a56">
|
||||
<link rel="stylesheet" href="../../_static/pygments.css?821d5707ec5117c103dd5a56">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../../_static/clipboard.min.js"></script>
|
||||
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?9c377408b2e4ad0ff803ec05"></script></head>
|
||||
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?821d5707ec5117c103dd5a56"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../../_static/styles/default.css?b99f7f0ef333970e4b09db1f">
|
||||
<link rel="stylesheet" href="../../_static/pygments.css?b99f7f0ef333970e4b09db1f">
|
||||
<link rel="stylesheet" href="../../_static/styles/default.css?e1c55f9bf653961eb631c442">
|
||||
<link rel="stylesheet" href="../../_static/pygments.css?e1c55f9bf653961eb631c442">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../../_static/clipboard.min.js"></script>
|
||||
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?b99f7f0ef333970e4b09db1f"></script></head>
|
||||
<script src="../../_static/copybutton.js"></script><script src="../../_static/scripts/main.js?e1c55f9bf653961eb631c442"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../getting_started/whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -8,8 +8,8 @@
|
||||
<link rel="stylesheet" href="_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="_static/styles/default.css?a7b41e66f3b4156871f343e0">
|
||||
<link rel="stylesheet" href="_static/pygments.css?a7b41e66f3b4156871f343e0">
|
||||
<link rel="stylesheet" href="_static/styles/default.css?44a2e98ff7d193ac78b12d31">
|
||||
<link rel="stylesheet" href="_static/pygments.css?44a2e98ff7d193ac78b12d31">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -26,7 +26,7 @@
|
||||
<script src="_static/language_data.js" defer></script>
|
||||
|
||||
<script src="_static/clipboard.min.js"></script>
|
||||
<script src="_static/copybutton.js"></script><script src="_static/scripts/main.js?a7b41e66f3b4156871f343e0"></script></head>
|
||||
<script src="_static/copybutton.js"></script><script src="_static/scripts/main.js?44a2e98ff7d193ac78b12d31"></script></head>
|
||||
<body dir="">
|
||||
|
||||
</body>
|
||||
|
@ -1,260 +0,0 @@
|
||||
<!doctype html>
|
||||
<html class="no-js">
|
||||
<head><meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
|
||||
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="Manim’s structure" href="structure.html" /><link rel="prev" title="Example Scenes" href="example_scenes.html" />
|
||||
|
||||
<link rel="shortcut icon" href="../_static/icon.png"/><meta name="generator" content="sphinx-3.0.3, furo 2020.10.05.beta9"/>
|
||||
<title>CONFIG dictionary - manim documentation</title>
|
||||
<link rel="stylesheet" href="../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?d7274348f303e1edb9522cdb">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?d7274348f303e1edb9522cdb">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
--color-code-background: #f8f8f8;
|
||||
--color-code-foreground: #000000;
|
||||
|
||||
}
|
||||
</style>
|
||||
<script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script><script src="../_static/jquery.js"></script>
|
||||
<script src="../_static/underscore.js"></script>
|
||||
|
||||
<script src="../_static/doctools.js" defer></script>
|
||||
|
||||
<script src="../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../_static/clipboard.min.js"></script>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?d7274348f303e1edb9522cdb"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
<symbol id="svg-toc" viewBox="0 0 24 24">
|
||||
<title>Contents</title>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
|
||||
stroke-width="1.5" stroke="#101010" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z"/>
|
||||
<line x1="4" y1="6" x2="20" y2="6" />
|
||||
<line x1="10" y1="12" x2="20" y2="12" />
|
||||
<line x1="6" y1="18" x2="20" y2="18" />
|
||||
</svg>
|
||||
</symbol>
|
||||
<symbol id="svg-menu" viewBox="0 0 24 24">
|
||||
<title>Menu</title>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
|
||||
class="feather feather-menu">
|
||||
<line x1="3" y1="12" x2="21" y2="12"></line>
|
||||
<line x1="3" y1="6" x2="21" y2="6"></line>
|
||||
<line x1="3" y1="18" x2="21" y2="18"></line>
|
||||
</svg>
|
||||
</symbol>
|
||||
<symbol id="svg-arrow-right" viewBox="0 0 24 24">
|
||||
<title>Expand</title>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
|
||||
class="feather feather-chevron-right">
|
||||
<polyline points="9 18 15 12 9 6"></polyline>
|
||||
</svg>
|
||||
</symbol>
|
||||
</svg>
|
||||
|
||||
<input type="checkbox" class="sidebar-toggle" name="__navigation" id="__navigation">
|
||||
<input type="checkbox" class="sidebar-toggle" name="__toc" id="__toc">
|
||||
<label class="overlay sidebar-overlay" for="__navigation"></label>
|
||||
<label class="overlay toc-overlay" for="__toc"></label>
|
||||
|
||||
|
||||
<div class="page">
|
||||
<header class="mobile-header">
|
||||
<label class="header-left nav-overlay-icon" for="__navigation">
|
||||
<i class="icon"><svg><use href="#svg-menu"></use></svg></i>
|
||||
</label>
|
||||
<div class="header-center"><div class="brand">manim documentation</div></div>
|
||||
<div class="header-right"></div>
|
||||
</header>
|
||||
<aside class="sidebar-drawer">
|
||||
<div class="sidebar-container">
|
||||
|
||||
<div class="sidebar-sticky"><a class="sidebar-brand centered" href="../index.html">
|
||||
<div class="sidebar-logo-container">
|
||||
<img class="sidebar-logo" src="../_static/transparent_graph.png" alt="Logo"/>
|
||||
</div>
|
||||
|
||||
</a><form class="sidebar-search-container" method="get" action="../search.html">
|
||||
<input class="sidebar-search" placeholder="Search" name="q">
|
||||
<input type="hidden" name="check_keywords" value="yes">
|
||||
<input type="hidden" name="area" value="default">
|
||||
</form><div class="sidebar-tree sidebar-scroll">
|
||||
<p><span class="caption-text">Getting Started</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="installation.html">Installation</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
<p><span class="caption-text">Documentation</span></p>
|
||||
<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/custom_config.html">custom_config</a></li>
|
||||
</ul>
|
||||
<p><span class="caption-text">Development</span></p>
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../development/changelog.html">Changelog</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../development/contributing.html">Contributing</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../development/about.html">About</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</aside>
|
||||
<main class="main">
|
||||
<div class="content">
|
||||
<article role="main">
|
||||
<label class="toc-overlay-icon" for="__toc">
|
||||
<i class="icon"><svg><use href="#svg-toc"></use></svg></i>
|
||||
</label>
|
||||
<section id="config-dictionary">
|
||||
<h1>CONFIG dictionary<a class="headerlink" href="#config-dictionary" title="Permalink to this headline">¶</a></h1>
|
||||
<section id="what-s-config">
|
||||
<h2>What’s CONFIG<a class="headerlink" href="#what-s-config" title="Permalink to this headline">¶</a></h2>
|
||||
<p><code class="docutils literal notranslate"><span class="pre">CONFIG</span></code> dictionary is a feature of manim, which facilitates the inheritance
|
||||
and modification of parameters between parent and child classes.</p>
|
||||
<div class="line-block">
|
||||
<div class="line"><code class="docutils literal notranslate"><span class="pre">CONFIG</span></code> dictionary ‘s processing is in <code class="docutils literal notranslate"><span class="pre">manimlib/utils/dict_ops.py</span></code></div>
|
||||
<div class="line">It can convert the key-value pairs in the <code class="docutils literal notranslate"><span class="pre">CONFIG</span></code> dictionary into class attributes and values</div>
|
||||
</div>
|
||||
<p>Generally, the first line of the <code class="docutils literal notranslate"><span class="pre">.__init__()</span></code> method in some basic class (<code class="docutils literal notranslate"><span class="pre">Mobject</span></code>, <code class="docutils literal notranslate"><span class="pre">Animation</span></code>,
|
||||
etc.) will call this function <code class="docutils literal notranslate"><span class="pre">digest_config(self,</span> <span class="pre">kwargs)</span></code> to convert both
|
||||
the <code class="docutils literal notranslate"><span class="pre">CONFIG</span></code> dictionary and <code class="docutils literal notranslate"><span class="pre">kwargs</span></code> into attributes. Then it can be accessed
|
||||
directly through <code class="docutils literal notranslate"><span class="pre">self.</span></code>, which simplifies the handling of inheritance between classes.</p>
|
||||
<p><strong>An example</strong>:</p>
|
||||
<p>There are many class inheritance relationships in <code class="docutils literal notranslate"><span class="pre">manimlib/mobject/geometry.py</span></code></p>
|
||||
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># Line 279</span>
|
||||
<span class="k">class</span> <span class="nc">Circle</span><span class="p">(</span><span class="n">Arc</span><span class="p">):</span>
|
||||
<span class="n">CONFIG</span> <span class="o">=</span> <span class="p">{</span>
|
||||
<span class="s2">"color"</span><span class="p">:</span> <span class="n">RED</span><span class="p">,</span>
|
||||
<span class="s2">"close_new_points"</span><span class="p">:</span> <span class="kc">True</span><span class="p">,</span>
|
||||
<span class="s2">"anchors_span_full_range"</span><span class="p">:</span> <span class="kc">False</span>
|
||||
<span class="p">}</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># Line 304</span>
|
||||
<span class="k">class</span> <span class="nc">Dot</span><span class="p">(</span><span class="n">Circle</span><span class="p">):</span>
|
||||
<span class="n">CONFIG</span> <span class="o">=</span> <span class="p">{</span>
|
||||
<span class="s2">"radius"</span><span class="p">:</span> <span class="n">DEFAULT_DOT_RADIUS</span><span class="p">,</span>
|
||||
<span class="s2">"stroke_width"</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span>
|
||||
<span class="s2">"fill_opacity"</span><span class="p">:</span> <span class="mf">1.0</span><span class="p">,</span>
|
||||
<span class="s2">"color"</span><span class="p">:</span> <span class="n">WHITE</span>
|
||||
<span class="p">}</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>The <code class="docutils literal notranslate"><span class="pre">Circle</span></code> class uses the key-value pair <code class="docutils literal notranslate"><span class="pre">"color":</span> <span class="pre">RED</span></code> in the <code class="docutils literal notranslate"><span class="pre">CONFIG</span></code>
|
||||
dictionary to add the attribute <code class="docutils literal notranslate"><span class="pre">self.color</span></code>.</p>
|
||||
<p>At the same time, the <code class="docutils literal notranslate"><span class="pre">Dot</span></code> class also contains the key <code class="docutils literal notranslate"><span class="pre">color</span></code> in the
|
||||
<code class="docutils literal notranslate"><span class="pre">CONFIG</span></code> dictionary, but the value is different. At this time, the priority will
|
||||
modify the attribute <code class="docutils literal notranslate"><span class="pre">self.color</span></code> to <code class="docutils literal notranslate"><span class="pre">WHITE</span></code>.</p>
|
||||
</section>
|
||||
<section id="config-nesting">
|
||||
<h2>CONFIG nesting<a class="headerlink" href="#config-nesting" title="Permalink to this headline">¶</a></h2>
|
||||
<p>The <code class="docutils literal notranslate"><span class="pre">CONFIG</span></code> dictionary supports nesting, that is, the value of the key is also
|
||||
a dictionary, for example:</p>
|
||||
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Camera</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
|
||||
<span class="n">CONFIG</span> <span class="o">=</span> <span class="p">{</span>
|
||||
<span class="c1"># configs</span>
|
||||
<span class="p">}</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Scene</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
|
||||
<span class="n">CONFIG</span> <span class="o">=</span> <span class="p">{</span>
|
||||
<span class="s2">"window_config"</span><span class="p">:</span> <span class="p">{},</span>
|
||||
<span class="s2">"camera_class"</span><span class="p">:</span> <span class="n">Camera</span><span class="p">,</span>
|
||||
<span class="s2">"camera_config"</span><span class="p">:</span> <span class="p">{},</span>
|
||||
<span class="s2">"file_writer_config"</span><span class="p">:</span> <span class="p">{},</span>
|
||||
<span class="c1"># other configs</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
|
||||
<span class="n">digest_config</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">kwargs</span><span class="p">)</span>
|
||||
<span class="c1"># some lines</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">camera</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">camera_class</span><span class="p">(</span><span class="o">**</span><span class="bp">self</span><span class="o">.</span><span class="n">camera_config</span><span class="p">)</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>The <code class="docutils literal notranslate"><span class="pre">CONFIG</span></code> dictionary of the <code class="docutils literal notranslate"><span class="pre">Camera</span></code> class contains many key-value pairs,
|
||||
and this class needs to be instantiated in the <code class="docutils literal notranslate"><span class="pre">Scene</span></code> class. For more convenient
|
||||
control, there is a special key-value pair in the Scene class <code class="docutils literal notranslate"><span class="pre">"camera_config":</span> <span class="pre">{}</span></code>,
|
||||
Its value is a dictionary, passed in as <code class="docutils literal notranslate"><span class="pre">kwargs</span></code> when initializing the <code class="docutils literal notranslate"><span class="pre">Camera</span></code> class
|
||||
to modify the value of the properties of the <code class="docutils literal notranslate"><span class="pre">Camera</span></code> class.</p>
|
||||
<p>So the nesting of the <code class="docutils literal notranslate"><span class="pre">CONFIG</span></code> dictionary <strong>essentially</strong> passes in the value as <code class="docutils literal notranslate"><span class="pre">kwargs</span></code>.</p>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
</article>
|
||||
<footer>
|
||||
|
||||
<div class="related-pages">
|
||||
<a class="next-page" href="structure.html">
|
||||
<div class="page-info">
|
||||
<div class="context">
|
||||
<span>Next</span>
|
||||
</div>
|
||||
<div class="title">Manim’s structure</div>
|
||||
</div>
|
||||
<svg><use href="#svg-arrow-right"></use></svg>
|
||||
</a>
|
||||
<a class="prev-page" href="example_scenes.html">
|
||||
<svg><use href="#svg-arrow-right"></use></svg>
|
||||
<div class="page-info">
|
||||
<div class="context">
|
||||
<span>Previous</span>
|
||||
</div>
|
||||
|
||||
<div class="title">Example Scenes</div>
|
||||
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="related-information">
|
||||
<span class="copyright">Copyright © - This document has been placed in the public domain.</span> |
|
||||
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using
|
||||
<a class="muted-link" href="https://pradyunsg.me">@pradyunsg</a>'s
|
||||
<a href="https://github.com/pradyunsg/furo">Furo theme</a>.
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
<aside class="toc-drawer">
|
||||
|
||||
|
||||
<div class="toc-sticky toc-scroll">
|
||||
<div class="toc-title-container">
|
||||
<span class="toc-title">
|
||||
Contents
|
||||
</span>
|
||||
</div>
|
||||
<div class="toc-tree">
|
||||
<ul>
|
||||
<li><a class="reference internal" href="#">CONFIG dictionary</a><ul>
|
||||
<li><a class="reference internal" href="#what-s-config">What’s CONFIG</a></li>
|
||||
<li><a class="reference internal" href="#config-nesting">CONFIG nesting</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</aside>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?3ccfa775949866bfbd176bea">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?3ccfa775949866bfbd176bea">
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?c932d3b1a2677b46f72b9101">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?c932d3b1a2677b46f72b9101">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../_static/clipboard.min.js"></script>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?3ccfa775949866bfbd176bea"></script></head>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?c932d3b1a2677b46f72b9101"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -2,15 +2,15 @@
|
||||
<html class="no-js">
|
||||
<head><meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
|
||||
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="CONFIG dictionary" href="config.html" /><link rel="prev" title="CLI flags and configuration" href="configuration.html" />
|
||||
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="Manim’s structure" href="structure.html" /><link rel="prev" title="CLI flags and configuration" href="configuration.html" />
|
||||
|
||||
<link rel="shortcut icon" href="../_static/icon.png"/><meta name="generator" content="sphinx-3.0.3, furo 2020.10.05.beta9"/>
|
||||
<title>Example Scenes - manim documentation</title>
|
||||
<link rel="stylesheet" href="../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?dc36a5632b77c61f379c4b6d">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?dc36a5632b77c61f379c4b6d">
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?55033846ad79eb5663afcad0">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?55033846ad79eb5663afcad0">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../_static/clipboard.min.js"></script>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?dc36a5632b77c61f379c4b6d"></script></head>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?55033846ad79eb5663afcad0"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
@ -829,12 +828,12 @@ usage of manim. For more examples, see <a class="reference external" href="https
|
||||
<footer>
|
||||
|
||||
<div class="related-pages">
|
||||
<a class="next-page" href="config.html">
|
||||
<a class="next-page" href="structure.html">
|
||||
<div class="page-info">
|
||||
<div class="context">
|
||||
<span>Next</span>
|
||||
</div>
|
||||
<div class="title">CONFIG dictionary</div>
|
||||
<div class="title">Manim’s structure</div>
|
||||
</div>
|
||||
<svg><use href="#svg-arrow-right"></use></svg>
|
||||
</a>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?b8ae2a1e4794378511fc2bc5">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?b8ae2a1e4794378511fc2bc5">
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?17ff1688558a8eb9e3401574">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?17ff1688558a8eb9e3401574">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../_static/clipboard.min.js"></script>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?b8ae2a1e4794378511fc2bc5"></script></head>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?17ff1688558a8eb9e3401574"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?c561518a46841575fb52c175">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?c561518a46841575fb52c175">
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?235718bb177645d866ebaca1">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?235718bb177645d866ebaca1">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../_static/clipboard.min.js"></script>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?c561518a46841575fb52c175"></script></head>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?235718bb177645d866ebaca1"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
@ -2,15 +2,15 @@
|
||||
<html class="no-js">
|
||||
<head><meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
|
||||
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="What’s new" href="whatsnew.html" /><link rel="prev" title="CONFIG dictionary" href="config.html" />
|
||||
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="What’s new" href="whatsnew.html" /><link rel="prev" title="Example Scenes" href="example_scenes.html" />
|
||||
|
||||
<link rel="shortcut icon" href="../_static/icon.png"/><meta name="generator" content="sphinx-3.0.3, furo 2020.10.05.beta9"/>
|
||||
<title>Manim’s structure - manim documentation</title>
|
||||
<link rel="stylesheet" href="../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?1b5ebad7ae2bb3d5715e5aa3">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?1b5ebad7ae2bb3d5715e5aa3">
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?bb0e55428ceb1c15d804d3e2">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?bb0e55428ceb1c15d804d3e2">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../_static/clipboard.min.js"></script>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?1b5ebad7ae2bb3d5715e5aa3"></script></head>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?bb0e55428ceb1c15d804d3e2"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
@ -257,14 +256,14 @@ but basically all classes have included:</p>
|
||||
</div>
|
||||
<svg><use href="#svg-arrow-right"></use></svg>
|
||||
</a>
|
||||
<a class="prev-page" href="config.html">
|
||||
<a class="prev-page" href="example_scenes.html">
|
||||
<svg><use href="#svg-arrow-right"></use></svg>
|
||||
<div class="page-info">
|
||||
<div class="context">
|
||||
<span>Previous</span>
|
||||
</div>
|
||||
|
||||
<div class="title">CONFIG dictionary</div>
|
||||
<div class="title">Example Scenes</div>
|
||||
|
||||
</div>
|
||||
</a>
|
||||
|
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="../_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?a552ff498a07c07eb5f2cb17">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?a552ff498a07c07eb5f2cb17">
|
||||
<link rel="stylesheet" href="../_static/styles/default.css?f29aa9784a573d29be6ed6c0">
|
||||
<link rel="stylesheet" href="../_static/pygments.css?f29aa9784a573d29be6ed6c0">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="../_static/language_data.js" defer></script>
|
||||
|
||||
<script src="../_static/clipboard.min.js"></script>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?a552ff498a07c07eb5f2cb17"></script></head>
|
||||
<script src="../_static/copybutton.js"></script><script src="../_static/scripts/main.js?f29aa9784a573d29be6ed6c0"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">What’s new</a></li>
|
||||
</ul>
|
||||
|
12
index.html
12
index.html
@ -9,8 +9,8 @@
|
||||
<link rel="stylesheet" href="_static/copybutton.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="_static/styles/default.css?a38f40de5a7d93e345bab745">
|
||||
<link rel="stylesheet" href="_static/pygments.css?a38f40de5a7d93e345bab745">
|
||||
<link rel="stylesheet" href="_static/styles/default.css?58ad687e3c162c4c95028ceb">
|
||||
<link rel="stylesheet" href="_static/pygments.css?58ad687e3c162c4c95028ceb">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -27,7 +27,7 @@
|
||||
<script src="_static/language_data.js" defer></script>
|
||||
|
||||
<script src="_static/clipboard.min.js"></script>
|
||||
<script src="_static/copybutton.js"></script><script src="_static/scripts/main.js?a38f40de5a7d93e345bab745"></script></head>
|
||||
<script src="_static/copybutton.js"></script><script src="_static/scripts/main.js?58ad687e3c162c4c95028ceb"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -94,7 +94,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
@ -160,11 +159,6 @@ at <a class="reference external" href="https://www.3blue1brown.com/">3Blue1Brown
|
||||
<li class="toctree-l2"><a class="reference internal" href="getting_started/example_scenes.html#openingmanimexample">OpeningManimExample</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/config.html">CONFIG dictionary</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="getting_started/config.html#what-s-config">What’s CONFIG</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="getting_started/config.html#config-nesting">CONFIG nesting</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/structure.html">Manim’s structure</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="getting_started/structure.html#manim-s-directory-structure">Manim’s directory structure</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="getting_started/structure.html#inheritance-structure-of-manim-s-classes">Inheritance structure of manim’s classes</a></li>
|
||||
|
BIN
objects.inv
BIN
objects.inv
Binary file not shown.
@ -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="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/manim-kindergarten/CDN@master/manimgl_assets/colors.css" />
|
||||
<link rel="stylesheet" href="_static/styles/default.css?b1e0580942f274c92ad3ded1">
|
||||
<link rel="stylesheet" href="_static/pygments.css?b1e0580942f274c92ad3ded1">
|
||||
<link rel="stylesheet" href="_static/styles/default.css?60f00abfd81af0fca570ae0c">
|
||||
<link rel="stylesheet" href="_static/pygments.css?60f00abfd81af0fca570ae0c">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
@ -25,7 +25,7 @@
|
||||
|
||||
<script src="_static/clipboard.min.js"></script>
|
||||
<script src="_static/copybutton.js"></script>
|
||||
<script src="_static/searchtools.js" defer></script><script src="_static/scripts/main.js?b1e0580942f274c92ad3ded1"></script></head>
|
||||
<script src="_static/searchtools.js" defer></script><script src="_static/scripts/main.js?60f00abfd81af0fca570ae0c"></script></head>
|
||||
<body dir="">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
@ -92,7 +92,6 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/quickstart.html">Quick Start</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/configuration.html">CLI flags and configuration</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/example_scenes.html">Example Scenes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/config.html">CONFIG dictionary</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/structure.html">Manim’s structure</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="getting_started/whatsnew.html">What’s new</a></li>
|
||||
</ul>
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user