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 (Vector3DLike) – The direction of the brace. By default
DOWN.label_constructor (type[SingleStringMathTex | Text]) – 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[str, Any] | None) – Arguments to be passed to
Brace.kwargs (Any) – Additional arguments to be passed to
VMobject.
Methods
change_brace_labelchange_labelcreation_animshift_braceAttributes
alwaysCall a method on a mobject every frame.
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.
- _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)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
obj (Mobject)
text (str)
brace_direction (Vector3DLike)
label_constructor (type[SingleStringMathTex | Text])
font_size (float)
buff (float)
brace_config (dict[str, Any] | None)
kwargs (Any)