본문 바로가기

Programming/Manim code

[026]Circle

반응형
    def circle_test(self):
        circle1 = Circle(
            radius=1,
            stroke_width=6,
            stroke_color=RED,
            fill_opacity=1.0,
            fill_color=BLUE)
        circle2 = circle1.copy()
        circle2.set_fill(color=RED,opacity=1.0)

        circle1.to_edge(LEFT)
        circle2.to_edge(RIGHT)

        self.add(circle1)
        self.play(
            Transform(circle1,circle2),
            run_time=4,
        )
        self.wait()

 

 

 

반응형

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

[028]Decimal  (0) 2020.05.11
[027]Ellipse/Annulus/AnnularSector/Sector  (0) 2020.05.11
[025]ArcBetweenPoints  (0) 2020.05.11
[024]Arc  (0) 2020.05.11
[023]Rectangle, Square, RoundedRectangle  (0) 2020.05.11