Exemplo n.º 1
0
 def __init__(self, x, y, size, color):
     Circle.__init__(self, (x, y), size)
     self.x = x
     self.y = y
     self.size = size
     self.color = color
     self.set_color(color)
Exemplo n.º 2
0
 def __init__(self, x, y, radius, color, speed_v=np.zeros(2)):
     mass = math.exp(radius)
     Circle.__init__(self, (x, y), radius)
     bodyObject.__init__(self, mass, np.array([x, y]), speed_v)
     self.set_color(color)
     self.x = x
     self.y = y
     self.color = color
Exemplo n.º 3
0
 def __init__(self, x, y, z, r, *args, **kwargs):
     Circle.__init__(self, (0,0), r, *args, **kwargs)
     self._verts3d = x, y, z
Exemplo n.º 4
0
 def __init__(self, message, net, direction, *args, **kwargs):
     Circle.__init__(self, self._get_pos(message, net, direction), *args,
                     **kwargs)
Exemplo n.º 5
0
 def __init__(self, xy, *args, **kwargs):
     Circle.__init__(self, xy, *args, **kwargs)
Exemplo n.º 6
0
 def __init__(self, message, net, direction, *args, **kwargs):
     Circle.__init__(self, self._get_pos(message, net, direction), *args,
                     **kwargs)
Exemplo n.º 7
0
 def __init__(self, xy, *args, **kwargs):
     Circle.__init__(self, xy, *args, **kwargs)
Exemplo n.º 8
0
 def __init__(self, xy, radius, **kwargs):
     Circle.__init__(self, xy, radius, **kwargs)
     self.speed = (0, 0)
Exemplo n.º 9
0
    def __init__(self, xy, radius=5, **kwargs):

        Circle.__init__(self, xy, radius, **kwargs)
        self._path = Path([[-1, 0], [1,0], [0,-1], [0, 1]],
                         [Path.MOVETO, Path.LINETO, Path.MOVETO,
                          Path.LINETO])