Bracket¶
Qualified name: manimextra.algebra.Bracket
- class manimextra.algebra.Bracket(mobject, direction=array([0., -1., 0.]), buff=0.2, **kwargs)¶
Bases:
VMobjectFromSVGPath
Analogue of manim’s Brace, but for a rectangle.
Examples
Example: BracketExample ¶
from manim import * from manimextra import * class BracketExample(Scene): def construct(self): sq = Square(color=BLUE, fill_opacity=0.5) bracket = Bracket(sq, buff=0.1) self.add(sq, bracket)
Methods
Attributes
animate
Used to animate the application of any method of
self
.animation_overrides
color
depth
The depth of the mobject.
fill_color
If there are multiple colors (for gradient) this returns the first one
height
The height of the mobject.
n_points_per_curve
sheen_factor
stroke_color
width
The width of the mobject.
- _original__init__(mobject, direction=array([0., -1., 0.]), buff=0.2, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.