parent
8a2ba43797
commit
ed0ff5618b
Binary file not shown.
Binary file not shown.
@ -0,0 +1,19 @@
|
||||
# simple_example.py
|
||||
from manim import *
|
||||
|
||||
class SimpleScene(Scene):
|
||||
def construct(self):
|
||||
# 创建圆形
|
||||
circle = Circle(color=BLUE)
|
||||
# 创建文字标签
|
||||
label = Text("Hello Manim!", font_size=24).next_to(circle, DOWN)
|
||||
|
||||
# 显示动画
|
||||
self.play(Create(circle))
|
||||
self.play(Write(label))
|
||||
self.wait(1) # 暂停1秒
|
||||
|
||||
# 变换为正方形
|
||||
square = Square(color=RED)
|
||||
self.play(Transform(circle, square))
|
||||
self.wait(1)
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue