Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added `Title` example for the docs (#1485)

Jan-Hendrik Müller56996198fd3d
diff --git a/manim/mobject/svg/tex_mobject.py b/manim/mobject/svg/tex_mobject.py
index 5f02b79b7..5c04a068b 100644
--- a/manim/mobject/svg/tex_mobject.py
+++ b/manim/mobject/svg/tex_mobject.py
@@ -621,6 +621,22 @@ class BulletedList(Tex):
class Title(Tex):
+ """
+ Examples
+ --------
+ .. manim:: TitleExample
+ :save_last_frame:
+
+ import manim
+
+ class TitleExample(Scene):
+ def construct(self):
+ banner = ManimBanner()
+ title = Title(f"Manim version {manim.__version__}")
+ self.add(banner, title)
+
+ """
+
def __init__(
self,
*text_parts,