from manim import *
class Demo(Scene):
    def construct(self):
        p = Paragraph(
            "第一行：内容中等内容中等",
            "第二行：内容短",
            "第三行：内容较长内容较长内容较长",
            t2c={
                "第一行": RED,
                "第二行": BLUE,
                "第三行": GREEN,
            },
            t2g={
                "内容中等": (BLUE, GREEN),
                "内容短": (GREEN, RED),
                "内容较长": (RED, BLUE),
            },
        )
        _obj = p
        self.play(FadeIn(_obj), run_time=1.0)
        self.wait(3.00)
        self.wait(1.60)
