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: Sphere

A spherical dot.

Parameters
  • point (list | np.ndarray) – The location of the dot.

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

  • color (Color) – The color of the Dot3D.

  • resolution (Sequence[int]) – The number of samples taken of the Dot3D. A tuple can be used to define different resolutions for u and v respectively.

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.

n_points_per_curve

sheen_factor

stroke_color

width

The width of the mobject.