from manim import *
class NucleusDemo(Scene):
    def construct(self):
        title = Text("ScaleInPlace：原子核原地放大", font="STLiti", font_size=30).to_edge(UP)
        self.play(FadeIn(title), run_time=0.6)
        nucleus = Circle(radius=0.5, color=BLUE, fill_opacity=0.9, stroke_width=5)
        ring = Circle(radius=2.4, color=GREY_D, stroke_width=2)
        self.play(FadeIn(ring), FadeIn(nucleus), run_time=0.8)
        self.play(ScaleInPlace(nucleus, 2.6), run_time=2.0)
        note = Text("scale_factor 大于 1 是放大，位置保持不变", font="STLiti", font_size=21, color=YELLOW).to_edge(DOWN)
        self.play(FadeIn(note), run_time=0.4)
        self.wait(2.0)
