manim.mobject.changing.TracedPath

class TracedPath(traced_point_func, stroke_width=2, stroke_color='#FFFFFF', min_distance_to_new_point=0.1, **kwargs)[source]

Bases: manim.mobject.types.vectorized_mobject.VMobject

Traces the path of a point returned by a function call.

Examples

Example: TracedPathExample

from manim import *

class TracedPathExample(Scene):
    def construct(self):
        circ = Circle(color=RED).shift(4*LEFT)
        dot = Dot(color=RED).move_to(circ.get_start())
        rolling_circle = VGroup(circ, dot)
        trace = TracedPath(circ.get_start)
        rolling_circle.add_updater(lambda m: m.rotate(-0.3))
        self.add(trace, rolling_circle)
        self.play(rolling_circle.animate.shift(8*RIGHT), run_time=4, rate_func=linear)

Methods

update_path

Attributes

animate

Used to animate the application of a method.

animation_overrides

depth

The depth of the mobject.

height

The height of the mobject.

width

The width of the mobject.