manim-TextMobject 换行

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/wsx_9999/article/details/102642987

manim-TextMobject 换行

在需要换行的地方插入"\\\"即可。

class example(Scene):
    def construct(self):
        text=TextMobject('This is the first raw. \\\ And this is the second raw.')
        self.play(Write(text),run_time=5)
        self.wait()

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/wsx_9999/article/details/102642987