#author("2024-06-12T08:12:00+09:00","default:mesh","mesh") #author("2024-06-12T08:12:34+09:00","default:mesh","mesh") *[[背景色を変更する]] [#lbbf0f78] [[Manim CE:https://github.com/ManimCommunity/manim/]]において、標準の背景色は黒ですが、他の色に変更したい場合は、''self.camera.background_color''に、以下のように色を指定します。 [[Manim CE:https://github.com/ManimCommunity/manim/]]において、標準の背景色は黒ですが、他の色に変更したい場合は、''self.camera.background_color''に以下のように色を指定します。 #code(python){{ from manim import * class ChangeBackgroundColor(Scene): def __init__(self): super().__init__() self.camera.background_color = GOLD_A def construct(self): vof_desc1 = Text('VOF法によるコンクリート流動解析', color=BLACK, font_size=36, font='Meiryo').to_edge(UP, buff=0.5) self.add(vof_desc1) }} 作成された図は以下の通りです。 #ref(ChangeBackgroundColor.png,center,nowrap,80%, ChangeBackgroundColor);