项目符号列表¶
限定名称: manim.mobject.text.tex\_mobject.BulletedList
- class BulletedList(*items, buff=0.5, dot_scale_factor=2, tex_environment=None, **kwargs)[来源]¶
基础:
Tex一个项目符号列表。
示例
示例: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)方法
fade_all_but属性
animate用于动画化
self的任何方法的应用。animation_overridescolordepthmobject的深度。
fill_color如果有多种颜色(用于渐变),则返回第一个颜色
font_sizetex mobject 的字体大小。
hash_seed表示生成的mobject点结果的唯一哈希值。
heightmobject的高度。
n_points_per_curvesheen_factorstroke_colorwidthmobject的宽度。
- _original__init__(*items, buff=0.5, dot_scale_factor=2, tex_environment=None, **kwargs)¶
初始化自身。有关准确的签名,请参阅 help(type(self))。