Using a style to display text #4112
Unanswered
StephaneBarbin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
new to Manim. I created a script that basically writes text like a type-writer effect. Everything works perfectly well, except for one detail.
The text that displays is on a rounded corner rectangle of a certain color, which seems to change, depending on the style I'm using. I cannot seem to be able to, either, not put a colored rectangle that encompass the text, or to at least put it totally black, same color as the background of the entire rest of the space in the video animation.
In my code, I'm using "monokai" but it seems I cannot use other style without getting an error that looks like this: ValueError: Color #xxx; f not found (where xxx is of course different, depending on which style I'm trying)
So what I'm trying to do is: either being able to just not have a colored rectangle behind the text, or being able to find a style that would actually have a black background, or litterally being able to use a style, but force its color value (of that particular "rectangle" thing) to be black.
I thought background_color = "#000000" would do it but apparently not.
Here is my script:
Thanx in advance,
Stephane
Beta Was this translation helpful? Give feedback.
All reactions