본문 바로가기

Programming/Manim code

[45]Special Effects

반응형
    def broadcast(self):
        text = VGroup(
            TextMobject("Monday"),
            TextMobject("Tuesday"),
            TextMobject("Wednesday"),
            TextMobject("Thursday"),
            TextMobject("Friday"),
        ).arrange(DOWN)

        dot = Dot(color=RED).move_to(2 * RIGHT)
        self.add(dot)

        def get_broadcast():
            return Broadcast(dot, big_radius=5, color=RED, run_time=5)

        self.play(
            LaggedStartMap(FadeIn, text, run_time=4, lag_ratio=0.7),
            Succession(*[
                get_broadcast()
                for x in range(2)
            ])
        )
        self.play(get_broadcast())
        self.wait()

 

 

반응형

'Programming > Manim code' 카테고리의 다른 글

[47] add_updater  (0) 2020.05.29
[46]Mobject moving/coloring Animation  (0) 2020.05.29
[44]AnimationGroup  (0) 2020.05.20
[43]Transform(3)  (0) 2020.05.20
[42]Transform (2)  (0) 2020.05.12