跳转至

大括号标签

合格名称:manim.mobject.svg.brace.BraceLabel

Python
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)

Bases: 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
color
depth 对象的深度。
fill_color 如果有多种颜色(对于渐变),则返回第一个颜色
height mobject 的高度。
n_points_per_curve
sheen_factor
stroke_color
width mobject 的宽度。