본문 바로가기
html5

manim Growing

by peach1227 2024. 5. 17.

 

Growning

 

class Growing(Scene):
    def construct(self):
        self.camera.background_color = WHITE
        square = Square(color=RED)
        circle = Circle()
        triangle = Triangle()
        arrow = Arrow(RIGHT,LEFT, color=RED)
        star = Star()

        VGroup(square, circle, triangle).set_x(0).arrange(buff=1.5).set_y(2)
        VGroup(arrow, star).move_to(DOWN).set_x(0).arrange(buff=1.5).set_y(-2)

        self.play(GrowFromPoint(square, ORIGIN))
        self.play(GrowFromCenter(circle))
        self.play(GrowFromEdge(triangle, DOWN))
        self.play(GrowArrow(arrow))
        self.play(SpinInFromNothing(star))



# don't remove below command for run button to work
%manim -qm -v WARNING Growing

반응형

'html5' 카테고리의 다른 글

manim boolean operation  (0) 2024.05.19
manim TracedPath  (0) 2024.05.19
manim hypocycloid example video  (0) 2024.05.16
manim animation mp4  (0) 2024.05.11
python library: how to use manim ex1  (0) 2024.05.11