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.

33 lines
891 B

# simple_example.py
import manim
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)
if __name__ == '__main__':
config = {
"quality": "medium_quality",
"preview": True,
"media_dir": "./logo_output",
"pixel_height": 1080,
"pixel_width": 1920
}
with manim.tempconfig(config):
scene = SimpleScene()
scene.render()