You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
568 B

# simple_example.py
from manim import *
class SimpleScene(Scene):
def construct(self):
# 创建圆形
circle = Circle(color=BLUE)
# 创建文字标签
label = Text("东师理想AI数学助手功能演示", 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)