Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added example for :class:`~.BulletedList` (#1631)

peaceheisc77fa2007e39
diff --git a/manim/mobject/svg/tex_mobject.py b/manim/mobject/svg/tex_mobject.py
index 52dedc9b9..5dbd5fd61 100644
--- a/manim/mobject/svg/tex_mobject.py
+++ b/manim/mobject/svg/tex_mobject.py
@@ -598,6 +598,22 @@ class Tex(MathTex):
class BulletedList(Tex):
+ """
+ Examples
+ --------
+
+ .. manim:: BulletedListExample
+ :save_last_frame:
+
+ class BulletedListExample(Scene):
+ def construct(self):
+ blist = BulletedList("Item 1", "Item 2", "Item 3", height=2, width=2)
+ blist.set_color_by_tex("Item 1", RED)
+ blist.set_color_by_tex("Item 2", GREEN)
+ blist.set_color_by_tex("Item 3", BLUE)
+ self.add(blist)
+ """
+
def __init__(
self,
*items,