Esempio n. 1
0
 def __init__(self, **kwargs):
     digest_config(self, kwargs)
     height = self.height
     if "height" in kwargs:
         kwargs.pop("height")
     Rectangle.__init__(self,
                        width=self.aspect_ratio[0],
                        height=self.aspect_ratio[1],
                        **kwargs)
     self.scale_to_fit_height(height)
Esempio n. 2
0
 def __init__(self, **kwargs):
     digest_config(self, kwargs)
     height = self.height
     if "height" in kwargs:
         kwargs.pop("height")
     Rectangle.__init__(
         self,
         width=self.aspect_ratio[0],
         height=self.aspect_ratio[1],
         **kwargs
     )
     self.scale_to_fit_height(height)
Esempio n. 3
0
 def __init__(self, mobject, **kwargs):
     digest_config(self, kwargs)
     kwargs["width"] = mobject.get_width() + 2 * self.buff
     kwargs["height"] = mobject.get_height() + 2 * self.buff
     Rectangle.__init__(self, **kwargs)
     self.move_to(mobject)
Esempio n. 4
0
 def __init__(self, mobject, **kwargs):
     digest_config(self, kwargs)
     kwargs["width"] = mobject.get_width() + 2 * self.buff
     kwargs["height"] = mobject.get_height() + 2 * self.buff
     Rectangle.__init__(self, **kwargs)
     self.move_to(mobject)