[Python] How to create a table with empty cells?

Discussão em 'Python' iniciado por Stack, Junho 8, 2025.

  1. Stack

    Stack Membro Participativo

    When using Manim, how to create a table such that in the first row there are letters of the word "HELLO", and in the second row there are empty cells?

    Python code:

    t3 = Table(
    [["H", "E", "L", "L", "O"],
    [" ", " ", " ", " ", " "]], include_outer_lines=True,
    line_config={"stroke_width": 5, "color": BLUE}, v_buff = 1.3).scale(0.8)

    self.play(FadeIn(t3, run_time=2))


    My result:

    [​IMG]

    Continue reading...

Compartilhe esta Página