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)
        a = AnnularSector(inner_radius=0.5, outer_radius=1.5, angle=PI / 2,
                          color=RED, fill_opacity=1, stroke_width=0)
        b = AnnularSector(inner_radius=1.0, outer_radius=1.4, angle=PI / 2,
                          color=GREEN, fill_opacity=1, stroke_width=0)
        c = AnnularSector(inner_radius=0.9, outer_radius=1.5, angle=PI / 2,
                          color=YELLOW, fill_opacity=1, stroke_width=0)
        d = AnnularSector(inner_radius=0.3, outer_radius=1.5, angle=PI / 2,
                          color=BLUE, fill_opacity=1, stroke_width=0)
        grid = VGroup(a, b, c, d).arrange_in_grid(rows=2, cols=2, buff=(1.2, 0.9)).shift(DOWN * 0.4)
        for g in grid:
            self.play(FadeIn(g), run_time=0.6)
        self.wait(2.6)
