mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Allow Bubble to flip over any axis, which was unnecessarily restricted before
This commit is contained in:
parent
8ce13875a3
commit
2294cdea4f
1 changed files with 4 additions and 3 deletions
|
@ -455,8 +455,9 @@ class Bubble(SVGMobject):
|
||||||
mover.shift(point - self.get_tip())
|
mover.shift(point - self.get_tip())
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def flip(self):
|
def flip(self, axis=UP):
|
||||||
Mobject.flip(self)
|
Mobject.flip(self, axis=axis)
|
||||||
|
if abs(axis[0]) > 0:
|
||||||
self.direction = -np.array(self.direction)
|
self.direction = -np.array(self.direction)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue