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)[source]

基础类: VMobject

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

Parameters:
  • obj (Mobject) – 放置括号的相邻对象。

  • text (str) – 标签文本。

  • brace_direction (np.ndarray) – 支撑的方向。默认情况下为 DOWN

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

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

  • buff (float) – 物体与括号之间的缓冲区。

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

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

方法

change_brace_label

change_label

creation_anim

shift_brace

属性

animate

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

animation_overrides

color

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

Parameters:
  • obj (Mobject)

  • 文本 (字符串)

  • brace_direction (ndarray)

  • label_constructor (type)

  • font_size (float)

  • buff (float)

  • brace_config (字典 | )