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: 2 comments 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.
-
Hi everyone, Theming is really important to me, so I recently wrote a Manim plugin that lets you override the default colors using terminal color palettes, specifically from the iTerm2 collection. Here’s how it works: One light theme I really like is Monokai Pro Light—here’s an example of how it looks: ![]() Here is a minimal example: install the plugin via pip
And here is a minimal Scene:
This will result in this Scene: ![]() The plugin is documented here: Repo: https://github.com/Alexander-Nasuta/manim-themes Note: This plugin is for Manim Community Edition (ManimCE), not ManimGL. I’m sharing this here because it might be useful for others who are looking for a standardized light theme, even though this isn't the ManimCE repo. Hope it helps! |
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…