mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Changing order to points of Arrow rectangle makes for better behavior with ShowCreation
This commit is contained in:
parent
884aea298b
commit
18e8d96e4a
1 changed files with 3 additions and 3 deletions
|
@ -218,7 +218,7 @@ class Arrow(Line):
|
|||
fill_color = self.tip.get_fill_color(),
|
||||
fill_opacity = self.tip.get_fill_opacity()
|
||||
)
|
||||
self.add(self.rect)
|
||||
self.add_to_back(self.rect)
|
||||
self.set_stroke(width = 0)
|
||||
self.set_rectangular_stem_points()
|
||||
|
||||
|
@ -232,10 +232,10 @@ class Arrow(Line):
|
|||
perp_vect /= np.linalg.norm(perp_vect)
|
||||
width = self.rectangular_stem_width
|
||||
self.rect.set_points_as_corners([
|
||||
start + perp_vect*width/2,
|
||||
tip_base + 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,
|
||||
])
|
||||
return self
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue