A community-maintained Python framework for creating mathematical animations.
Added PGroup
Grant Sanderson557bbff36c71
diff --git a/manimlib/mobject/types/point_cloud_mobject.py b/manimlib/mobject/types/point_cloud_mobject.pyindex 44ef3f98a..f8276382a 100644--- a/manimlib/mobject/types/point_cloud_mobject.py+++ b/manimlib/mobject/types/point_cloud_mobject.py@@ -221,6 +221,14 @@ class Mobject2D(PMobject):Mobject.__init__(self, **kwargs)+class PGroup(PMobject):+ def __init__(self, *pmobs, **kwargs):+ if not all([isinstance(m, PMobject) for m in pmobs]):+ raise Exception("All submobjects must be of type PMobject")+ super().__init__(**kwargs)+ self.add(*pmobs)++class PointCloudDot(Mobject1D):CONFIG = {"radius": 0.075,