- class BraceBetweenPoints(point_1, point_2, direction=array([0., 0., 0.]), **kwargs)#
Similar to Brace, but instead of taking a mobject it uses 2 points to place the brace.
A fitting direction for the brace is computed, but it still can be manually overridden. If the points go from left to right, the brace is drawn from below. Swapping the points places the brace on the opposite side.
point_1 (Sequence[float] | None) – The first point.
point_2 (Sequence[float] | None) – The second point.
direction (Sequence[float] | None) – The direction from which the brace faces towards the points.
Example: BraceBPExample ¶
from manim import * class BraceBPExample(Scene): def construct(self): p1 = [0,0,0] p2 = [1,2,0] brace = BraceBetweenPoints(p1,p2) self.play(Create(NumberPlane())) self.play(Create(brace)) self.wait(2)
Used to animate the application of any method of
The depth of the mobject.
If there are multiple colors (for gradient) this returns the first one
The height of the mobject.
The width of the mobject.