from manim import *
FONT = "STLiti"
def make_shapes():
    sq = Square(side_length=1.5, color=WHITE, stroke_width=5)
    cir = Circle(radius=0.75, color=WHITE, stroke_width=5)
    tri = Triangle(color=WHITE, stroke_width=5)
    g = VGroup(sq, cir, tri)
    sq.shift(UP * 0.5 + RIGHT * 0.4)
    cir.shift(LEFT * 1.0 + DOWN * 0.4)
    tri.shift(RIGHT * 1.2 + DOWN * 0.5)
    return g
class Demo(Scene):
    def construct(self):
        head = Text("Mobject 基础属性", font=FONT, font_size=36, color=YELLOW).to_edge(UP, buff=0.5)
        bar = Line(LEFT * 6.6, RIGHT * 6.6, color=BLUE).next_to(head, DOWN, buff=0.12)
        self.play(FadeIn(head), Create(bar), run_time=0.6)
        g = make_shapes()
        for m in g:
            self.play(FadeIn(m), run_time=0.6)
        self.wait(3.2)
