from manim import *
FONT = "STLiti"
class Demo(Scene):
    def construct(self):
        d1 = Dot(RIGHT * 1.5, color=RED, radius=0.13)
        d2 = Dot(UL * 1.8, color=BLUE, radius=0.13)
        d3 = Dot(DR * 1.8, color=GREEN, radius=0.13)
        pts = VGroup(d1, d2, d3)
        c = Circle.from_three_points(d1.get_center(), d2.get_center(),
                                     d3.get_center(), color=YELLOW, stroke_width=5)
        VGroup(pts, c).scale(0.68).move_to(DOWN * 0.3)
        self.play(FadeIn(pts), run_time=0.8)
        self.play(Create(c), run_time=1.6)
        head = Text("三点定圆", font=FONT, font_size=36, color=YELLOW).to_edge(UP, buff=0.5)
        self.play(FadeIn(head), run_time=0.6)
        self.wait(2.6)
