Title¶
Qualified name: manim.mobject.text.tex\_mobject.Title
- class Title(*text_parts, include_underline=True, match_underline_width_to_text=False, underline_buff=0.25, **kwargs)[source]¶
Bases:
TexA mobject representing an underlined title.
Examples
Example: TitleExample ¶
from manim import * import manim class TitleExample(Scene): def construct(self): banner = ManimBanner() title = Title(f"Manim version {manim.__version__}") self.add(banner, title)
import manim class TitleExample(Scene): def construct(self): banner = ManimBanner() title = Title(f"Manim version {manim.__version__}") self.add(banner, title)Methods
Attributes
alwaysCall a method on a mobject every frame.
animateUsed to animate the application of any method of
self.animation_overridescolordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
font_sizeThe font size of the tex mobject.
hash_seedA unique hash representing the result of the generated mobject points.
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.
- Parameters:
text_parts (str)
include_underline (bool)
match_underline_width_to_text (bool)
underline_buff (float)
kwargs (Any)
- _original__init__(*text_parts, include_underline=True, match_underline_width_to_text=False, underline_buff=0.25, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
text_parts (str)
include_underline (bool)
match_underline_width_to_text (bool)
underline_buff (float)
kwargs (Any)