Can we create a light theme? #1738
-
Hey all, I've been exploring Manim off and on for awhile and finally hunkered down today. I think this is a great visualization library and I really want to use it for my educational tools. Is it possible we can create a light theme though? I write books and the only thing keeping me from using this over Desmos, matplotlib, and Plotly for illustrations is it's dark theming. While the dark theming is cool for videos, it is not paper-friendly if I want to generate static images. While the colors can be overridden, it would be nice to standardize a light theme. Just a thought and thank you for all this fantastic work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
ManimGL can make light color themes videos/pictures, because all colors can also be changed. style = {"fill_color": BLACK, "background_stroke_color": WHITE}
tex = Tex("a^2+b^2=c^2", **style)
# or
class Tex_(Tex):
CONFIG = {
"fill_color": BLACK,
"background_stroke_color": WHITE,
} |
Beta Was this translation helpful? Give feedback.
ManimGL can make light color themes videos/pictures, because all colors can also be changed.
If you want to change the background color, you can change the
default_config.yml
file in themanimlib/
folder or thecustom_config.yml
file in the current directory. Or just runmanimgl --config
and it will guide you through these configurations.To change the color of the
Mobject
, you can directly pass in the parameters such ascolor
,stroke_color
,fill_color
,stroke_opacity
,fill_opacity
,background_stroke_color
,background_stroke_opacity
, etc.Although the default color does not provide an option for a light theme, which will cause each
Mobject
to need to modify the color, but if you feel repe…