Point#
Qualified name: manim.mobject.types.point\_cloud\_mobject.Point
- class Point(location=array([0., 0., 0.]), color='#000000', **kwargs)[source]#
Bases:
PMobject
Examples
Example: ExamplePoint ¶
from manim import * class ExamplePoint(Scene): def construct(self): colorList = [RED, GREEN, BLUE, YELLOW] for i in range(200): point = Point(location=[0.63 * np.random.randint(-4, 4), 0.37 * np.random.randint(-4, 4), 0], color=np.random.choice(colorList)) self.add(point) for i in range(200): point = Point(location=[0.37 * np.random.randint(-4, 4), 0.63 * np.random.randint(-4, 4), 0], color=np.random.choice(colorList)) self.add(point) self.add(point)
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.