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='#FFFF00', **kwargs)[source]#
Bases:
Mobject1D
A disc made of a cloud of Dots .. rubric:: 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)
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)) )
Methods
Initializes
points
and therefore the shape.init_points
Attributes
animate
Used to animate the application of any method of
self
.animation_overrides
depth
The depth of the mobject.
height
The height of the mobject.
width
The width of the mobject.