Skip to content

Does Tex("str") have indexes like Tex("str")? #1429

Answered by BlockOG
BlockOG asked this question in Q&A
Discussion options

You must be logged in to vote

I solved the first question you just have to do this because tex makes an array inside an array:

class Math(Scene):
    def construct(self):
        math = Tex("1\\frac{5*1}{6*5}")
        math[0][0].set_color(RED)

        self.play(Write(math))

Result:

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by BlockOG
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant