mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Added PGroup
This commit is contained in:
parent
2bb8afa9e0
commit
557bbff36c
1 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue