BraceLabel#
Qualified name: 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]#
Bases:
VMobjectCreate a brace with a label attached.
- Parameters
obj (Mobject) – The mobject adjacent to which the brace is placed.
text (str) – The label text.
brace_direction (np.ndarray) – The direction of the brace. By default
DOWN.label_constructor (type) – A class or function used to construct a mobject representing the label. By default
MathTex.font_size (float) – The font size of the label, passed to the
label_constructor.buff (float) – The buffer between the mobject and the brace.
brace_config (dict | None) – Arguments to be passed to
Brace.kwargs – Additional arguments to be passed to
VMobject.
Methods
change_brace_labelchange_labelcreation_animshift_braceAttributes
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
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.