Ejemplo n.º 1
0
    def __init__(self, mob, **kwargs):
        digest_locals(self)
        VMobject.__init__(self, **kwargs)

        buff = float(self.spacing) / self.dashes_num

        for i in range(self.dashes_num):
            a = ((1+buff) * i)/self.dashes_num
            b = 1-((1+buff) * (self.dashes_num-1-i)) / self.dashes_num
            dash = VMobject(color = self.color)
            dash.pointwise_become_partial(mob, a, b)
            self.submobjects.append(dash)
Ejemplo n.º 2
0
 def __init__(self, *vertices, **kwargs):
     assert len(vertices) > 1
     digest_locals(self)
     VMobject.__init__(self, **kwargs)
Ejemplo n.º 3
0
 def __init__(self, path_string, **kwargs):
     digest_locals(self)
     VMobject.__init__(self, **kwargs)
Ejemplo n.º 4
0
 def __init__(self, mobject, **kwargs):
     digest_locals(self)
     Camera.__init__(self, **kwargs)
Ejemplo n.º 5
0
 def __init__(self, *vertices, **kwargs):
     assert len(vertices) > 1
     digest_locals(self)
     VMobject.__init__(self, **kwargs)
Ejemplo n.º 6
0
 def __init__(self, path_string, **kwargs):
     digest_locals(self)
     VMobject.__init__(self, **kwargs)