manim icon indicating copy to clipboard operation
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.

Open inoxch opened this issue 2 years ago • 7 comments

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

inoxch avatar Apr 01 '22 15:04 inoxch

https://user-images.githubusercontent.com/101418800/161295545-7907ebb1-1303-4103-9b2b-422a0a7041b6.mp4

inoxch avatar Apr 01 '22 15:04 inoxch

There is no ManimGL 0.15.0. There is, however, a ManimCE 0.15.0. Can you verify which version you are using?

Darylgolden avatar Apr 04 '22 02:04 Darylgolden

it always turns white in the Write animation.

What do you mean by "white"? Does it mean that the boundary is white?

ghost avatar Apr 09 '22 03:04 ghost

I think this is the default setting for write animation.

ghost avatar Apr 10 '22 06:04 ghost

There is no ManimGL 0.15.0. There is, however, a ManimCE 0.15.0. Can you verify which version you are using?

Sorry,the version is ManimGL v1.5.0

inoxch avatar Apr 11 '22 14:04 inoxch

Maybe what you need is stroke_color in Write?

Try this: Write(t, stroke_color=BLACK)

TonyCrane avatar Apr 11 '22 15:04 TonyCrane

Try this: Write(t, stroke_color=BLACK)

https://user-images.githubusercontent.com/102971029/163659003-b525fe16-fca9-43f1-ad5b-da05acc650e6.mp4

It's good.

ghost avatar Apr 16 '22 03:04 ghost