Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Small fix in the code of ArcBrace (#3226)

Abulafiab9367a2fb759
diff --git a/manim/mobject/svg/brace.py b/manim/mobject/svg/brace.py
index a595f05a2..1e2b84ac6 100644
--- a/manim/mobject/svg/brace.py
+++ b/manim/mobject/svg/brace.py
@@ -335,10 +335,12 @@ class ArcBrace(Brace):
def __init__(
self,
- arc: Arc = Arc(start_angle=-1, angle=2, radius=1),
+ arc: Arc | None = None,
direction: Sequence[float] = RIGHT,
**kwargs,
):
+ if arc is None:
+ arc = Arc(start_angle=-1, angle=2, radius=1)
arc_end_angle = arc.start_angle + arc.angle
line = Line(UP * arc.start_angle, UP * arc_end_angle)
scale_shift = RIGHT * np.log(arc.radius)