def flip(self, axis=UP): Mobject.flip(self, axis=axis) self.refresh_unit_normal() self.refresh_triangulation() if abs(axis[1]) > 0: self.direction = -np.array(self.direction) return self
def __init__(self, **kwargs): digest_config(self, kwargs, locals()) if self.file_name is None: raise Exception("Must invoke Bubble subclass") try: SVGMobject.__init__(self, **kwargs) except IOError as err: self.file_name = os.path.join(FILE_DIR, self.file_name) SVGMobject.__init__(self, **kwargs) self.center() self.stretch_to_fit_height(self.height) self.stretch_to_fit_width(self.width) if self.direction[0] > 0: Mobject.flip(self) self.direction_was_specified = ("direction" in kwargs) self.content = Mobject()
def __init__(self, **kwargs): digest_config(self, kwargs, locals()) if self.file_name is None: raise Exception("Must invoke Bubble subclass") try: SVGMobject.__init__(self, **kwargs) except IOError as err: self.file_name = os.path.join(FILE_DIR, self.file_name) SVGMobject.__init__(self, **kwargs) self.center() self.stretch_to_fit_height(self.height) self.stretch_to_fit_width(self.width) if self.direction[0] > 0: Mobject.flip(self) self.direction_was_specified = ("direction" in kwargs) self.content = Mobject()
def flip(self, axis=UP): Mobject.flip(self, axis=axis) if abs(axis[1]) > 0: self.direction = -np.array(self.direction) return self
def flip(self): Mobject.flip(self) self.direction = -np.array(self.direction) return self
def flip(self): Mobject.flip(self) self.direction = -np.array(self.direction) return self