Dot¶
Qualified name: manim.mobject.geometry.arc.Dot
- class Dot(point=array([0., 0., 0.]), radius=0.08, stroke_width=0, fill_opacity=1.0, color=ManimColor('#FFFFFF'), **kwargs)[source]¶
Bases:
CircleA circle with a very small radius.
- Parameters:
point (Point3DLike) – The location of the dot.
radius (float) – The radius of the dot.
stroke_width (float) – The thickness of the outline of the dot.
fill_opacity (float) – The opacity of the dot’s fill_colour
color (ManimColor) – The color of the dot.
kwargs (Any) – Additional arguments to be passed to
Circle
Examples
Example: DotExample ¶
from manim import * class DotExample(Scene): def construct(self): dot1 = Dot(point=LEFT, radius=0.08) dot2 = Dot(point=ORIGIN) dot3 = Dot(point=RIGHT) self.add(dot1,dot2,dot3)
class DotExample(Scene): def construct(self): dot1 = Dot(point=LEFT, radius=0.08) dot2 = Dot(point=ORIGIN) dot3 = Dot(point=RIGHT) self.add(dot1,dot2,dot3)Methods
Attributes
alwaysCall a method on a mobject every frame.
animateUsed to animate the application of any method of
self.animation_overridescolordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.
- _original__init__(point=array([0., 0., 0.]), radius=0.08, stroke_width=0, fill_opacity=1.0, color=ManimColor('#FFFFFF'), **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
point (Point3DLike)
radius (float)
stroke_width (float)
fill_opacity (float)
color (ParsableManimColor)
kwargs (Any)
- Return type:
None