반응형
def simple(self):
circle = Circle()
circle.save_state()
self.play(circle.to_edge, LEFT)
self.play(circle.to_edge, RIGHT)
self.play(circle.restore)
self.play(circle.to_edge, UP)
self.play(circle.to_edge, DOWN)
self.play(circle.restore)
self.play(circle.set_fill, RED, {"opacity": 0.5})
self.play(circle.set_color_by_gradient, YELLOW)
self.play(circle.to_corner, UL)
self.play(circle.to_corner, DR)
self.play(circle.restore)
self.wait()
def simple2(self):
circle = Circle()
circle.save_state()
self.play(circle.set_fill, RED, {"opacity": 0.5})
self.play(circle.set_fill, RED)
self.play(circle.set_color_by_gradient, YELLOW)
반응형
'Programming > Manim code' 카테고리의 다른 글
[48]always_redraw (0) | 2020.05.29 |
---|---|
[47] add_updater (0) | 2020.05.29 |
[45]Special Effects (0) | 2020.05.29 |
[44]AnimationGroup (0) | 2020.05.20 |
[43]Transform(3) (0) | 2020.05.20 |