BulletedList¶
Qualified name: manim.mobject.text.tex\_mobject.BulletedList
- class BulletedList(*items, buff=0.5, dot_scale_factor=2, tex_environment=None, **kwargs)[source]¶
Bases:
TexA bulleted list.
Examples
Example: BulletedListExample ¶
from manim import * 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)
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)Methods
fade_all_butAttributes
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:
items (str)
buff (float)
dot_scale_factor (float)
tex_environment (str | None)
kwargs (Any)
- _original__init__(*items, buff=0.5, dot_scale_factor=2, tex_environment=None, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
items (str)
buff (float)
dot_scale_factor (float)
tex_environment (str | None)
kwargs (Any)