html5
%%manim -qm -v WARNING TracedPathExample
class TracedPathExample(Scene):
def construct(self):
circ = Circle(color=BLUE).shift(6*LEFT)
circ.rotate(-90*DEGREES)
dot = Dot(color=RED).move_to(circ.get_start())
rolling_circle = VGroup(circ, dot)
trace = TracedPath(circ.get_start)
trace.set_color(RED)
rolling_circle.add_updater(lambda m: m.rotate(-0.065))
self.add(trace, rolling_circle)
self.play(rolling_circle.animate.shift(10*RIGHT), run_time=5, rate_func=linear)
Manim Community v0.18.1
manim Growing (0) | 2024.05.17 |
---|---|
manim hypocycloid example video (0) | 2024.05.16 |
python library: how to use manim ex1 (0) | 2024.05.11 |
eigenvalue, eigenvector practice (0) | 2024.04.30 |
mathML : using mathML (0) | 2024.04.30 |