templates¶
- import_template_beanim(module_name: str)[source]¶
Import a chosen template to standardize styling across all Beanim objects.
This function loads a predefined color and styling template that will be applied to all subsequent Beanim objects created in the scene. It helps maintain visual consistency across presentations.
- Parameters:
module_name (str) – Name of the template to import. Must be one of the allowed templates.
- Raises:
ModuleNotFoundError – If the specified template module cannot be found.
Note
This function should be called before defining your Scene class to ensure the template is properly loaded before any Beanim objects are created.
- Available templates:
"green_mint""blue_ice""red_autumn""beamer_blue""beamer_green""dark_energy""quantum dusk""default_template"(default)
Example usage:
from manim_beanim import * import_template_beanim('desired_template') class MyScene(Scene): def construct(self): # Your Beanim objects will now use the selected template pass