Example #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)
Example #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
Example #3
0
 def __init__(self, x, y, z, r, *args, **kwargs):
     Circle.__init__(self, (0,0), r, *args, **kwargs)
     self._verts3d = x, y, z
Example #4
0
 def __init__(self, message, net, direction, *args, **kwargs):
     Circle.__init__(self, self._get_pos(message, net, direction), *args,
                     **kwargs)
Example #5
0
 def __init__(self, xy, *args, **kwargs):
     Circle.__init__(self, xy, *args, **kwargs)
Example #6
0
 def __init__(self, message, net, direction, *args, **kwargs):
     Circle.__init__(self, self._get_pos(message, net, direction), *args,
                     **kwargs)
Example #7
0
 def __init__(self, xy, *args, **kwargs):
     Circle.__init__(self, xy, *args, **kwargs)
Example #8
0
 def __init__(self, xy, radius, **kwargs):
     Circle.__init__(self, xy, radius, **kwargs)
     self.speed = (0, 0)
Example #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])