from manim import *
class AngleRadius(Scene):
    """3.1 radius 决定角度弧的半径，只改标记大小、不改角的度数。
    四个同样的直角配上不同 radius，横向排开便于对照。
    """
    def construct(self):
        title = Text("角度大小 radius", font="STLiti", font_size=34).to_edge(UP)
        self.play(Write(title), run_time=0.8)
        groups = VGroup()
        for r in (0.15, 0.35, 0.55, 0.75):
            l1 = Line(LEFT, RIGHT, color=GREY_B)
            l2 = Line(DOWN, UP, color=GREY_B)
            arc = Angle(l1, l2, radius=r, color=YELLOW)
            cap = Text("r = %.2f" % r, font="STLiti", font_size=22)
            cap.next_to(VGroup(l1, l2), DOWN, buff=0.35)
            groups.add(VGroup(l1, l2, arc, cap))
        groups.arrange(RIGHT, buff=1.1).scale(0.85)
        self.play(LaggedStart(*[FadeIn(g) for g in groups], lag_ratio=0.3),
                  run_time=2.4)
        self.wait(3.0)
