manim
manim copied to clipboard
If put Text into VGroup, no matter what color it is set to,it always turns white in the Write animation.
If put Text into VGroup, no matter what color it is set to, it always turns white in the Write animation. It doesn't look good on a white background. Edition:ManimGL 0.15.0 Code: t1=Text("A",color=BLUE) t2=Text("B",color=YELLOW) t3=Text("C",color=RED) t4=Text("D",color=BLACK) t=VGroup(t1,t2,t3,t4).arrange(RIGHT).scale(2) self.play(Write(t)) self.wait() Output:
https://user-images.githubusercontent.com/101418800/161295315-4cfc981a-132a-4f0c-aa49-66bc03fd7365.mp4
https://user-images.githubusercontent.com/101418800/161295545-7907ebb1-1303-4103-9b2b-422a0a7041b6.mp4
There is no ManimGL 0.15.0
. There is, however, a ManimCE 0.15.0
. Can you verify which version you are using?
it always turns white in the Write animation.
What do you mean by "white"? Does it mean that the boundary is white?
I think this is the default setting for write animation.
There is no
ManimGL 0.15.0
. There is, however, aManimCE 0.15.0
. Can you verify which version you are using?
Sorry,the version is ManimGL v1.5.0
Maybe what you need is stroke_color
in Write
?
Try this: Write(t, stroke_color=BLACK)
Try this: Write(t, stroke_color=BLACK)
https://user-images.githubusercontent.com/102971029/163659003-b525fe16-fca9-43f1-ad5b-da05acc650e6.mp4
It's good.