반응형
class RestoreTest(Scene):
def construct(self):
dot = Dot()
dot.save_state()
self.add(dot)
self.play(dot.shift, 2 * UP)
self.wait()
self.play(dot.shift, 5 * DOWN)
self.wait()
self.play(dot.restore)
self.wait()
반응형
'Programming > Manim code' 카테고리의 다른 글
[012]TextMobject.set_color/set_color_by_map (0) | 2020.05.05 |
---|---|
[011]Text/TextMobject (0) | 2020.05.05 |
[008]align_to/arrange/arrange_in_grid (0) | 2020.05.05 |
[007]mob.get_left/mob.get_right (0) | 2020.05.05 |
[006]Example: Coordinate Methods (0) | 2020.05.05 |