Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)