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.

Files changed (84) hide show
  1. manim/__init__.py +1 -0
  2. manim/__main__.py +2 -0
  3. manim/_config/__init__.py +0 -1
  4. manim/_config/logger_utils.py +1 -0
  5. manim/_config/utils.py +14 -5
  6. manim/animation/changing.py +9 -5
  7. manim/animation/creation.py +8 -3
  8. manim/animation/indication.py +4 -4
  9. manim/animation/speedmodifier.py +2 -4
  10. manim/animation/updaters/mobject_update_utils.py +134 -16
  11. manim/camera/camera.py +31 -17
  12. manim/cli/checkhealth/__init__.py +0 -0
  13. manim/cli/checkhealth/checks.py +173 -0
  14. manim/cli/checkhealth/commands.py +81 -0
  15. manim/cli/render/global_options.py +6 -0
  16. manim/constants.py +58 -54
  17. manim/mobject/geometry/__init__.py +1 -0
  18. manim/mobject/geometry/arc.py +126 -91
  19. manim/mobject/geometry/boolean_ops.py +6 -10
  20. manim/mobject/geometry/labeled.py +155 -0
  21. manim/mobject/geometry/line.py +66 -50
  22. manim/mobject/geometry/polygram.py +23 -15
  23. manim/mobject/geometry/shape_matchers.py +24 -15
  24. manim/mobject/geometry/tips.py +62 -40
  25. manim/mobject/graph.py +3 -4
  26. manim/mobject/graphing/coordinate_systems.py +190 -139
  27. manim/mobject/graphing/number_line.py +5 -2
  28. manim/mobject/graphing/probability.py +4 -3
  29. manim/mobject/graphing/scale.py +7 -7
  30. manim/mobject/logo.py +108 -22
  31. manim/mobject/matrix.py +33 -37
  32. manim/mobject/mobject.py +327 -260
  33. manim/mobject/opengl/opengl_image_mobject.py +1 -1
  34. manim/mobject/opengl/opengl_mobject.py +18 -12
  35. manim/mobject/opengl/opengl_point_cloud_mobject.py +1 -1
  36. manim/mobject/opengl/opengl_surface.py +1 -1
  37. manim/mobject/opengl/opengl_vectorized_mobject.py +21 -17
  38. manim/mobject/svg/brace.py +3 -1
  39. manim/mobject/svg/svg_mobject.py +9 -11
  40. manim/mobject/table.py +50 -54
  41. manim/mobject/text/numbers.py +48 -6
  42. manim/mobject/text/tex_mobject.py +8 -12
  43. manim/mobject/text/text_mobject.py +32 -24
  44. manim/mobject/three_d/three_d_utils.py +13 -8
  45. manim/mobject/three_d/three_dimensions.py +61 -43
  46. manim/mobject/types/image_mobject.py +5 -4
  47. manim/mobject/types/point_cloud_mobject.py +8 -6
  48. manim/mobject/types/vectorized_mobject.py +385 -258
  49. manim/mobject/vector_field.py +19 -11
  50. manim/plugins/import_plugins.py +1 -1
  51. manim/plugins/plugins_flags.py +1 -6
  52. manim/renderer/shader.py +2 -2
  53. manim/scene/scene.py +15 -7
  54. manim/scene/scene_file_writer.py +1 -2
  55. manim/scene/three_d_scene.py +1 -1
  56. manim/scene/vector_space_scene.py +17 -7
  57. manim/typing.py +133 -0
  58. manim/utils/bezier.py +267 -83
  59. manim/utils/color/AS2700.py +234 -0
  60. manim/utils/color/BS381.py +315 -0
  61. manim/utils/color/X11.py +530 -0
  62. manim/utils/color/XKCD.py +949 -0
  63. manim/utils/color/__init__.py +58 -0
  64. manim/utils/color/core.py +1036 -0
  65. manim/utils/color/manim_colors.py +220 -0
  66. manim/utils/docbuild/autocolor_directive.py +92 -0
  67. manim/utils/docbuild/manim_directive.py +40 -6
  68. manim/utils/file_ops.py +1 -1
  69. manim/utils/hashing.py +1 -1
  70. manim/utils/iterables.py +1 -1
  71. manim/utils/rate_functions.py +33 -0
  72. manim/utils/simple_functions.py +0 -18
  73. manim/utils/space_ops.py +55 -42
  74. manim/utils/testing/frames_comparison.py +9 -0
  75. manim/utils/tex.py +2 -0
  76. manim/utils/tex_file_writing.py +29 -2
  77. {manim-0.17.3.dist-info → manim-0.18.0.post0.dist-info}/METADATA +14 -14
  78. {manim-0.17.3.dist-info → manim-0.18.0.post0.dist-info}/RECORD +82 -71
  79. {manim-0.17.3.dist-info → manim-0.18.0.post0.dist-info}/WHEEL +1 -1
  80. manim/communitycolors.py +0 -9
  81. manim/utils/color.py +0 -552
  82. {manim-0.17.3.dist-info → manim-0.18.0.post0.dist-info}/LICENSE +0 -0
  83. {manim-0.17.3.dist-info → manim-0.18.0.post0.dist-info}/LICENSE.community +0 -0
  84. {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 = Color(color) if color else self.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([isinstance(m, (PMobject, OpenGLPMobject)) for m in pmobs]):
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 Dots
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
  --------