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
|
@@ -5,7 +5,6 @@ from __future__ import annotations
|
|
|
5
5
|
__all__ = ["PMobject", "Mobject1D", "Mobject2D", "PGroup", "PointCloudDot", "Point"]
|
|
6
6
|
|
|
7
7
|
import numpy as np
|
|
8
|
-
from colour import Color
|
|
9
8
|
|
|
10
9
|
from manim.mobject.opengl.opengl_compatibility import ConvertToOpenGL
|
|
11
10
|
from manim.mobject.opengl.opengl_point_cloud_mobject import OpenGLPMobject
|
|
@@ -17,6 +16,7 @@ from ...utils.color import (
|
|
|
17
16
|
BLACK,
|
|
18
17
|
WHITE,
|
|
19
18
|
YELLOW,
|
|
19
|
+
ManimColor,
|
|
20
20
|
color_gradient,
|
|
21
21
|
color_to_rgba,
|
|
22
22
|
rgba_to_color,
|
|
@@ -76,7 +76,7 @@ class PMobject(Mobject, metaclass=ConvertToOpenGL):
|
|
|
76
76
|
num_new_points = len(points)
|
|
77
77
|
self.points = np.append(self.points, points, axis=0)
|
|
78
78
|
if rgbas is None:
|
|
79
|
-
color =
|
|
79
|
+
color = ManimColor(color) if color else self.color
|
|
80
80
|
rgbas = np.repeat([color_to_rgba(color, alpha)], num_new_points, axis=0)
|
|
81
81
|
elif len(rgbas) != len(points):
|
|
82
82
|
raise ValueError("points and rgbas must have same length")
|
|
@@ -244,7 +244,8 @@ class Mobject2D(PMobject, metaclass=ConvertToOpenGL):
|
|
|
244
244
|
|
|
245
245
|
|
|
246
246
|
class PGroup(PMobject):
|
|
247
|
-
"""
|
|
247
|
+
"""A group for several point mobjects.
|
|
248
|
+
|
|
248
249
|
Examples
|
|
249
250
|
--------
|
|
250
251
|
|
|
@@ -266,7 +267,7 @@ class PGroup(PMobject):
|
|
|
266
267
|
"""
|
|
267
268
|
|
|
268
269
|
def __init__(self, *pmobs, **kwargs):
|
|
269
|
-
if not all(
|
|
270
|
+
if not all(isinstance(m, (PMobject, OpenGLPMobject)) for m in pmobs):
|
|
270
271
|
raise ValueError(
|
|
271
272
|
"All submobjects must be of type PMobject or OpenGLPMObject"
|
|
272
273
|
" if using the opengl renderer",
|
|
@@ -281,7 +282,8 @@ class PGroup(PMobject):
|
|
|
281
282
|
|
|
282
283
|
|
|
283
284
|
class PointCloudDot(Mobject1D):
|
|
284
|
-
"""A disc made of a cloud of
|
|
285
|
+
"""A disc made of a cloud of dots.
|
|
286
|
+
|
|
285
287
|
Examples
|
|
286
288
|
--------
|
|
287
289
|
.. manim:: PointCloudDotExample
|
|
@@ -347,7 +349,7 @@ class PointCloudDot(Mobject1D):
|
|
|
347
349
|
|
|
348
350
|
|
|
349
351
|
class Point(PMobject):
|
|
350
|
-
"""
|
|
352
|
+
"""A mobject representing a point.
|
|
351
353
|
|
|
352
354
|
Examples
|
|
353
355
|
--------
|