If put Text into VGroup, no matter what color it is set to,it always turns white in the Write animation.
- 主要語言
- Python
- 星號
- 93.9k
- 分支
- 7.7k
- 平均合併
- 2 天 13 小時
- 30 天內合併 PR
- 4
描述
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
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
查看 manim/animation/creation.py 中的 Write 動畫代碼,或類似位置。此問題很可能與 Write 過程中 VGroup 如何處理顏色繼承有關。先用提供的程式碼重現該 bug,然後追蹤 Write 如何將顏色套用到分組的 Text 物件。檢查是否有設定預設顏色。'Done' 表示 Text 在 Write 動畫期間保留其設定的顏色。
由索引模型根據 Issue 內容生成。
評估
- 領域
- computer-graphics
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 55/100