본문 바로가기

Programming/Manim code

[015]Text: font size

반응형
        t1 = Text("Hello 0.1", font='굴림', stroke_width=1, size=0.1)
        t2 = Text("Hello 0.2", font='굴림', stroke_width=1, size=0.2)
        t3 = Text("Hello 0.3", font='굴림', stroke_width=1, size=0.3)
        t4 = Text("Hello 0.4", font='굴림', stroke_width=1, size=0.4)
        t5 = Text("Hello 0.5", font='굴림', stroke_width=1, size=0.5)
        t6 = Text("Hello 0.7 ", font='굴림', stroke_width=1, size=0.7)
        t7 = Text("Hello 1", font='굴림', stroke_width=1, size=1)
        t8 = Text("Hello 1.5", font='굴림', stroke_width=1, size=1.5)

        t = VGroup(t1, t2, t3, t4, t5, t6, t7, t8)
        t.arrange(DOWN, buff=0.3)

        self.add(t)
        self.wait()

반응형

'Programming > Manim code' 카테고리의 다른 글

[018]Line/DashedLine  (0) 2020.05.06
[016]Mobject Class Diagram  (0) 2020.05.06
[014]Text/TextMobject/TexMobject  (0) 2020.05.05
[013]Text: Transform  (0) 2020.05.05
[012]TextMobject.set_color/set_color_by_map  (0) 2020.05.05