ArcBrace#

Qualified name: `manim.mobject.svg.brace.ArcBrace`

class ArcBrace(arc=None, direction=array([1., 0., 0.]), **kwargs)[source]#

Bases: `Brace`

Creates a `Brace` that wraps around an `Arc`.

The direction parameter allows the brace to be applied from outside or inside the arc.

Warning

The `ArcBrace` is smaller for arcs with smaller radii.

Note

The `ArcBrace` is initially a vertical `Brace` defined by the length of the `Arc`, but is scaled down to match the start and end angles. An exponential function is then applied after it is shifted based on the radius of the arc.

The scaling effect is not applied for arcs with radii smaller than 1 to prevent over-scaling.

Parameters:
• arc (Arc | None) – The `Arc` that wraps around the `Brace` mobject.

• direction (Sequence[float]) – The direction from which the brace faces the arc. `LEFT` for inside the arc, and `RIGHT` for the outside.

Example

Example: ArcBraceExample

```from manim import *

class ArcBraceExample(Scene):
def construct(self):
brace_1 = ArcBrace(arc_1,LEFT)
group_1 = VGroup(arc_1,brace_1)

brace_2 = ArcBrace(arc_2)
group_2 = VGroup(arc_2,brace_2)

brace_3 = ArcBrace(arc_3)
group_3 = VGroup(arc_3,brace_3)

brace_4 = ArcBrace(arc_4)
group_4 = VGroup(arc_4,brace_4)

arc_group = VGroup(group_1, group_2, group_3, group_4).arrange_in_grid(buff=1.5)
```
```class ArcBraceExample(Scene):
def construct(self):
brace_1 = ArcBrace(arc_1,LEFT)
group_1 = VGroup(arc_1,brace_1)

brace_2 = ArcBrace(arc_2)
group_2 = VGroup(arc_2,brace_2)

brace_3 = ArcBrace(arc_3)
group_3 = VGroup(arc_3,brace_3)

brace_4 = ArcBrace(arc_4)
group_4 = VGroup(arc_4,brace_4)

arc_group = VGroup(group_1, group_2, group_3, group_4).arrange_in_grid(buff=1.5)

```

References: `Arc`

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__(arc=None, direction=array([1., 0., 0.]), **kwargs)#

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

Parameters: