manim.mobject.three_dimensions.Dot3D

class Dot3D(radius=0.08, color='#FFFFFF', **kwargs)[source]

Bases: manim.mobject.three_dimensions.Sphere

A spherical dot.

Parameters
  • 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(color=RED).move_to(axes.coords_to_point(0, 0, 1))
        dot_2 = Dot3D(radius=0.1, color=BLUE).move_to(axes.coords_to_point(2, 0, 0))

        self.add(axes, dot_1, dot_2)

Methods

Attributes

animate

Used to animate the application of a method.

depth

The depth of the mobject.

height

The height of the mobject.

width

The width of the mobject.