BracketBetweenPoints

Qualified name: manimextra.algebra.BracketBetweenPoints

class manimextra.algebra.BracketBetweenPoints(point_1=array([-1., 0., 0.]), point_2=array([1., 0., 0.]), direction=array([0., 0., 0.]), **kwargs)

Bases: Bracket

Class that creates a bracket between two points.

Parameters:
  • point_1 (Point3DLike, optional) – The first point, by default ORIGIN

  • point_2 (Point3DLike, optional) – The second point, by default ORIGIN

  • direction (Point3DLike, optional) – The direction of the bracket, by default ORIGIN

Examples

Example: BracketBetweenPointsExample

../_images/BracketBetweenPointsExample-1.png
from manim import *
from manimextra import *

class BracketBetweenPointsExample(Scene):
    def construct(self):
        A = Dot(LEFT + DOWN)
        B = Dot(RIGHT + UP)
        bracket = BracketBetweenPoints(A, B, buff=0.1)
        self.add(A, B, 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__(point_1=array([-1., 0., 0.]), point_2=array([1., 0., 0.]), direction=array([0., 0., 0.]), **kwargs)

Initialize self. See help(type(self)) for accurate signature.