manim 0.17.3__py3-none-any.whl → 0.18.0.post0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of manim might be problematic. Click here for more details.
- manim/__init__.py +1 -0
- manim/__main__.py +2 -0
- manim/_config/__init__.py +0 -1
- manim/_config/logger_utils.py +1 -0
- manim/_config/utils.py +14 -5
- manim/animation/changing.py +9 -5
- manim/animation/creation.py +8 -3
- manim/animation/indication.py +4 -4
- manim/animation/speedmodifier.py +2 -4
- manim/animation/updaters/mobject_update_utils.py +134 -16
- manim/camera/camera.py +31 -17
- manim/cli/checkhealth/__init__.py +0 -0
- manim/cli/checkhealth/checks.py +173 -0
- manim/cli/checkhealth/commands.py +81 -0
- manim/cli/render/global_options.py +6 -0
- manim/constants.py +58 -54
- manim/mobject/geometry/__init__.py +1 -0
- manim/mobject/geometry/arc.py +126 -91
- manim/mobject/geometry/boolean_ops.py +6 -10
- manim/mobject/geometry/labeled.py +155 -0
- manim/mobject/geometry/line.py +66 -50
- manim/mobject/geometry/polygram.py +23 -15
- manim/mobject/geometry/shape_matchers.py +24 -15
- manim/mobject/geometry/tips.py +62 -40
- manim/mobject/graph.py +3 -4
- manim/mobject/graphing/coordinate_systems.py +190 -139
- manim/mobject/graphing/number_line.py +5 -2
- manim/mobject/graphing/probability.py +4 -3
- manim/mobject/graphing/scale.py +7 -7
- manim/mobject/logo.py +108 -22
- manim/mobject/matrix.py +33 -37
- manim/mobject/mobject.py +327 -260
- manim/mobject/opengl/opengl_image_mobject.py +1 -1
- manim/mobject/opengl/opengl_mobject.py +18 -12
- manim/mobject/opengl/opengl_point_cloud_mobject.py +1 -1
- manim/mobject/opengl/opengl_surface.py +1 -1
- manim/mobject/opengl/opengl_vectorized_mobject.py +21 -17
- manim/mobject/svg/brace.py +3 -1
- manim/mobject/svg/svg_mobject.py +9 -11
- manim/mobject/table.py +50 -54
- manim/mobject/text/numbers.py +48 -6
- manim/mobject/text/tex_mobject.py +8 -12
- manim/mobject/text/text_mobject.py +32 -24
- manim/mobject/three_d/three_d_utils.py +13 -8
- manim/mobject/three_d/three_dimensions.py +61 -43
- manim/mobject/types/image_mobject.py +5 -4
- manim/mobject/types/point_cloud_mobject.py +8 -6
- manim/mobject/types/vectorized_mobject.py +385 -258
- manim/mobject/vector_field.py +19 -11
- manim/plugins/import_plugins.py +1 -1
- manim/plugins/plugins_flags.py +1 -6
- manim/renderer/shader.py +2 -2
- manim/scene/scene.py +15 -7
- manim/scene/scene_file_writer.py +1 -2
- manim/scene/three_d_scene.py +1 -1
- manim/scene/vector_space_scene.py +17 -7
- manim/typing.py +133 -0
- manim/utils/bezier.py +267 -83
- manim/utils/color/AS2700.py +234 -0
- manim/utils/color/BS381.py +315 -0
- manim/utils/color/X11.py +530 -0
- manim/utils/color/XKCD.py +949 -0
- manim/utils/color/__init__.py +58 -0
- manim/utils/color/core.py +1036 -0
- manim/utils/color/manim_colors.py +220 -0
- manim/utils/docbuild/autocolor_directive.py +92 -0
- manim/utils/docbuild/manim_directive.py +40 -6
- manim/utils/file_ops.py +1 -1
- manim/utils/hashing.py +1 -1
- manim/utils/iterables.py +1 -1
- manim/utils/rate_functions.py +33 -0
- manim/utils/simple_functions.py +0 -18
- manim/utils/space_ops.py +55 -42
- manim/utils/testing/frames_comparison.py +9 -0
- manim/utils/tex.py +2 -0
- manim/utils/tex_file_writing.py +29 -2
- {manim-0.17.3.dist-info → manim-0.18.0.post0.dist-info}/METADATA +14 -14
- {manim-0.17.3.dist-info → manim-0.18.0.post0.dist-info}/RECORD +82 -71
- {manim-0.17.3.dist-info → manim-0.18.0.post0.dist-info}/WHEEL +1 -1
- manim/communitycolors.py +0 -9
- manim/utils/color.py +0 -552
- {manim-0.17.3.dist-info → manim-0.18.0.post0.dist-info}/LICENSE +0 -0
- {manim-0.17.3.dist-info → manim-0.18.0.post0.dist-info}/LICENSE.community +0 -0
- {manim-0.17.3.dist-info → manim-0.18.0.post0.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""Utilities for working with colors and predefined color constants.
|
|
2
|
+
|
|
3
|
+
Color data structure
|
|
4
|
+
--------------------
|
|
5
|
+
|
|
6
|
+
.. autosummary::
|
|
7
|
+
:toctree: ../reference
|
|
8
|
+
|
|
9
|
+
core
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Predefined colors
|
|
13
|
+
-----------------
|
|
14
|
+
|
|
15
|
+
There are several predefined colors available in Manim:
|
|
16
|
+
|
|
17
|
+
- The colors listed in :mod:`.color.manim_colors` are loaded into
|
|
18
|
+
Manim's global name space.
|
|
19
|
+
- The colors in :mod:`.color.AS2700`, :mod:`.color.BS381`, :mod:`.color.X11`,
|
|
20
|
+
and :mod:`.color.XKCD` need to be accessed via their module (which are available
|
|
21
|
+
in Manim's global name space), or imported separately. For example:
|
|
22
|
+
|
|
23
|
+
.. code:: pycon
|
|
24
|
+
|
|
25
|
+
>>> from manim import XKCD
|
|
26
|
+
>>> XKCD.AVOCADO
|
|
27
|
+
ManimColor('#90B134')
|
|
28
|
+
|
|
29
|
+
Or, alternatively:
|
|
30
|
+
|
|
31
|
+
.. code:: pycon
|
|
32
|
+
|
|
33
|
+
>>> from manim.utils.color.XKCD import AVOCADO
|
|
34
|
+
>>> AVOCADO
|
|
35
|
+
ManimColor('#90B134')
|
|
36
|
+
|
|
37
|
+
The following modules contain the predefined color constants:
|
|
38
|
+
|
|
39
|
+
.. autosummary::
|
|
40
|
+
:toctree: ../reference
|
|
41
|
+
|
|
42
|
+
manim_colors
|
|
43
|
+
AS2700
|
|
44
|
+
BS381
|
|
45
|
+
XKCD
|
|
46
|
+
X11
|
|
47
|
+
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
from typing import Dict, List
|
|
51
|
+
|
|
52
|
+
from . import AS2700, BS381, X11, XKCD
|
|
53
|
+
from .core import *
|
|
54
|
+
from .manim_colors import *
|
|
55
|
+
|
|
56
|
+
_all_color_dict: Dict[str, ManimColor] = {
|
|
57
|
+
k: v for k, v in globals().items() if isinstance(v, ManimColor)
|
|
58
|
+
}
|