Dot3D#

Qualified name: manim.mobject.three\_d.three\_dimensions.Dot3D

class Dot3D(point=array([0., 0., 0.]), radius=0.08, color='#FFFFFF', resolution=(8, 8), **kwargs)[source]#

Bases: manim.mobject.three_d.three_dimensions.Sphere

A spherical dot.

Parameters
  • point (Union[list, numpy.ndarray], optional) – The location of the dot.

  • radius (float, optional) – The radius of the dot.

  • color (Colors, optional) – The color of the Dot3D

Examples

Example: Dot3DExample

../_images/Dot3DExample-1.png
from manim import *

class Dot3DExample(ThreeDScene):
    def construct(self):
        self.set_camera_orientation(phi=75*DEGREES, theta=-45*DEGREES)

        axes = ThreeDAxes()
        dot_1 = Dot3D(point=axes.coords_to_point(0, 0, 1), color=RED)
        dot_2 = Dot3D(point=axes.coords_to_point(2, 0, 0), radius=0.1, color=BLUE)
        dot_3 = Dot3D(point=[0, 0, 0], radius=0.1, color=ORANGE)
        self.add(axes, dot_1, dot_2,dot_3)

Methods

Attributes

animate

Used to animate the application of any method of self.

animation_overrides

color

depth

The depth of the mobject.

fill_color

If there are multiple colors (for gradient) this returns the first one

height

The height of the mobject.

sheen_factor

stroke_color

width

The width of the mobject.