본문 바로가기

manim6

manim Homotopy %%manim -qm -v WARNING HomotopyAnimationEffect class HomotopyAnimationEffect(Scene):     def construct(self):         text=Tex("Hello World! GOOD").scale(3)         self.play(Write(text),run_time=2)         self.wait()         FRAME_HEIGHT=10         FRAME_Y_RADIUS=5         def homotopy(x, y, z, t):             alpha = (0.7 * x + FRAME_Y_RADIUS) / (FRAME_HEIGHT)             beta = squish_rate_f.. 2024. 5. 30.
manim ValueTracker class example %%manim -qm -v WARNING TangentLineExample class TangentLineExample(Scene):     def construct(self):         self.camera.background_color=WHITE         number_plane = NumberPlane(             x_range=[-20,20],y_range=[-5,5],             x_length=18,y_length=5,             background_line_style={                 "stroke_color": TEAL,                 "stroke_width": 4,                 "stroke_opaci.. 2024. 5. 28.
manim Growing 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).se.. 2024. 5. 17.
manim hypocycloid example video class HypocycloidSceneComplete(Scene): radius=1.5 color_path=RED divisions=[1,2,3,4,5,6,7,8] def construct(self): self.show_animation() def show_animation(self): c = True for i in self.divisions: r2=self.radius/i self.hypo(self.radius,r2,c) c = False def hypo(self,r1,r2,animation): # Manim circle c.. 2024. 5. 16.