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: manim.mobject.types.point_cloud_mobject.Mobject1D

A disc made of a cloud of Dots .. rubric:: Examples

Example: PointCloudDotExample

../_images/PointCloudDotExample-1.png
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

generate_points

Initializes points and therefore the shape.

Attributes

animate

Used to animate the application of a method.

animation_overrides

depth

The depth of the mobject.

height

The height of the mobject.

width

The width of the mobject.

generate_points()[source]

Initializes points and therefore the shape.

Gets called upon creation. This is an empty method that can be implemented by subclasses.