Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Reverse arrow rectangle orientation

Grant Sandersoncab3b1b3c6a5
diff --git a/mobject/geometry.py b/mobject/geometry.py
index 8dbb61a29..78d06ffc2 100644
--- a/mobject/geometry.py
+++ b/mobject/geometry.py
@@ -554,10 +554,10 @@ class Arrow(Line):
self.second_tip.get_anchors()[1:]
)
self.rect.set_points_as_corners([
- tip_base + perp_vect * width / 2,
- start + perp_vect * width / 2,
- start - perp_vect * width / 2,
tip_base - perp_vect * width / 2,
+ start - perp_vect * width / 2,
+ start + perp_vect * width / 2,
+ tip_base + perp_vect * width / 2,
])
self.stem = self.rect # Alternate name
return self