PointCloudDot¶
Qualified name: manim.mobject.types.point\_cloud\_mobject.PointCloudDot
- class PointCloudDot(center=array([0., 0., 0.]), radius=2.0, stroke_width=2, density=10, color=ManimColor('#FFFF00'), **kwargs)[source]¶
Bases:
Mobject1DA disc made of a cloud of dots.
Examples
Example: PointCloudDotExample ¶
from manim import * class PointCloudDotExample(Scene): def construct(self): cloud_1 = PointCloudDot(color=RED) cloud_2 = PointCloudDot(stroke_width=4, radius=1) cloud_3 = PointCloudDot(density=15) group = Group(cloud_1, cloud_2, cloud_3).arrange() self.add(group)
class PointCloudDotExample(Scene): def construct(self): cloud_1 = PointCloudDot(color=RED) cloud_2 = PointCloudDot(stroke_width=4, radius=1) cloud_3 = PointCloudDot(density=15) group = Group(cloud_1, cloud_2, cloud_3).arrange() self.add(group)Example: PointCloudDotExample2 ¶
from manim import * class PointCloudDotExample2(Scene): def construct(self): plane = ComplexPlane() cloud = PointCloudDot(color=RED) self.add( plane, cloud ) self.wait() self.play( cloud.animate.apply_complex_function(lambda z: np.exp(z)) )
class PointCloudDotExample2(Scene): def construct(self): plane = ComplexPlane() cloud = PointCloudDot(color=RED) self.add( plane, cloud ) self.wait() self.play( cloud.animate.apply_complex_function(lambda z: np.exp(z)) )Methods
Initializes
pointsand therefore the shape.init_pointsAttributes
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:
center (Point3DLike)
radius (float)
stroke_width (int)
density (int)
color (ManimColor)
kwargs (Any)
- _original__init__(center=array([0., 0., 0.]), radius=2.0, stroke_width=2, density=10, color=ManimColor('#FFFF00'), **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
center (Point3DLike)
radius (float)
stroke_width (int)
density (int)
color (ManimColor)
kwargs (Any)
- Return type:
None