전체 글199 manim TracedPath class ClockwisePathExample(Scene): def construct(self): self.camera.background_color=WHITE colors = [RED, GREEN, BLUE] starting_points = VGroup( *[ Dot(LEFT + pos, color=color) for pos, color in zip([ORIGIN, UP, DOWN], colors) ] ) finish_points = VGroup( *[ Dot(RIGHT + pos, color=c.. 2024. 5. 19. 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. manim animation mp4 basic_example_scenes3 In [3]:%%manim -qm -v WARNING TracedPathExampleclass TracedPathExample(Scene): def construct(self): circ = Circle(color=BLUE).shift(6*LEFT) circ.rotate(-90*DEGREES) dot = Dot(color=RED).move_to(circ.get_start()) rolling_circle = VGroup(circ, dot) trace = TracedPath(circ.get_start) trace.set_color(RED) rolling_circle.ad.. 2024. 5. 11. 이전 1 ··· 3 4 5 6 7 8 9 ··· 50 다음