PGroup¶
Qualified name: manim.mobject.types.point\_cloud\_mobject.PGroup
- class PGroup(*pmobs, **kwargs)[source]¶
Bases:
PMobjectA group for several point mobjects.
Examples
Example: PgroupExample ¶
from manim import * class PgroupExample(Scene): def construct(self): p1 = PointCloudDot(radius=1, density=20, color=BLUE) p1.move_to(4.5 * LEFT) p2 = PointCloudDot() p3 = PointCloudDot(radius=1.5, stroke_width=2.5, color=PINK) p3.move_to(4.5 * RIGHT) pList = PGroup(p1, p2, p3) self.add(pList)
class PgroupExample(Scene): def construct(self): p1 = PointCloudDot(radius=1, density=20, color=BLUE) p1.move_to(4.5 * LEFT) p2 = PointCloudDot() p3 = PointCloudDot(radius=1.5, stroke_width=2.5, color=PINK) p3.move_to(4.5 * RIGHT) pList = PGroup(p1, p2, p3) self.add(pList)Methods
fade_toAttributes
alwaysCall a method on a mobject every frame.
animateUsed to animate the application of any method of
self.animation_overridesdepthThe depth of the mobject.
heightThe height of the mobject.
widthThe width of the mobject.
- Parameters:
pmobs (Any)
kwargs (Any)
- _original__init__(*pmobs, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
pmobs (Any)
kwargs (Any)
- Return type:
None