from manim import *
FONT = "STLiti"
class Demo(Scene):
    def construct(self):
        head = Text("设置描边颜色", 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)
        sq = Square(side_length=1.5, color=WHITE, stroke_width=5).shift(UP * 0.5 + RIGHT * 0.4)
        cir = Circle(radius=0.75, color=RED, stroke_width=5).shift(LEFT * 1.0 + DOWN * 0.4)
        tri = Triangle(color=BLUE, stroke_width=5).shift(RIGHT * 1.2 + DOWN * 0.5)
        for m in (sq, cir, tri):
            self.play(FadeIn(m), run_time=0.6)
        self.wait(3.2)
