BraceLabel

全限定名称:manim.mobject.svg.brace.BraceLabel

class BraceLabel(obj, text, brace_direction=array([ 0., -1., 0.]), label_constructor=<class 'manim.mobject.text.tex_mobject.MathTex'>, font_size=48, buff=0.2, brace_config=None, **kwargs)[源]

基类:VMobject

创建一个带有标签的大括号。

参数:
  • obj (Mobject) – 大括号放置在其旁边的 mobject。

  • text (str) – 标签文本。

  • brace_direction (np.ndarray) – 大括号的方向。默认情况下为 DOWN

  • label_constructor (type) – 用于构造表示标签的 mobject 的类或函数。默认情况下为 MathTex

  • font_size (float) – 标签的字体大小,传递给 label_constructor

  • buff (float) – mobject 和大括号之间的缓冲距离。

  • brace_config (dict | None) – 将传递给 Brace 的参数。

  • kwargs – 将传递给 VMobject 的额外参数。

方法

change_brace_label

change_label

creation_anim

shift_brace

属性

animate (动画)

用于动画化 self 的任何方法的应用。

animation_overrides (动画覆盖)

颜色

depth (深度)

mobject 的深度。

fill_color (填充颜色)

如果存在多种颜色(用于渐变),则返回第一种颜色

height (高度)

mobject 的高度。

n_points_per_curve (每条曲线的点数)

sheen_factor (光泽因子)

stroke_color (描边颜色)

width (宽度)

mobject 的宽度。

_original__init__(obj, text, brace_direction=array([ 0., -1., 0.]), label_constructor=<class 'manim.mobject.text.tex_mobject.MathTex'>, font_size=48, buff=0.2, brace_config=None, **kwargs)

初始化自身。有关准确签名,请参阅 help(type(self))。

参数:
  • obj (Mobject)

  • text (str)

  • brace_direction (ndarray)

  • label_constructor (type)

  • font_size (float)

  • buff (浮点数)

  • brace_config (dict | None)