def __init__(self): super(graphicsWindow, self).__init__() # constructor for graphicsWindow class self.center1 = [self.width / 2, self.height / 2 ] # initialize the centre of the triangle self.center2 = [self.width / 2, self.height / 2 ] # initialize the centre of the triangle colors.printAvailableColors()
def __init__(self): super(graphicsWindow, self).__init__() # constructor for graphicsWindow class for i in range(0, len(triangles)): triangles[i].setCentreCoordinates(self.width / 2, self.height / 2) triangles[i].updateVertices() triangles[i].setThetaIncrement(5 * i) triangles[-1].setThetaIncrement(5) triangles[-1].setSpeed(3) colors.printAvailableColors()
def __init__(self) : super(graphicsWindow, self).__init__() # constructor for graphicsWindow class for i in triangles: i.setCentreCoordinates(self.width / 2, self.height / 2) i.setVelocity(randint(-10, 10), randint(-10,10)) i.setVertices() i.setRotationAngle(0) colors.printAvailableColors()
def __init__(self): super(graphicsWindow, self).__init__() # constructor for graphicsWindow class triangle1.setCentreCoordinates(timestep) triangle2.setCentreCoordinates(timestep) colors.printAvailableColors()
def __init__(self): super(graphicsWindow, self).__init__() # constructor for graphicsWindow class triangle1.setCentreCoordinates(self.width / 2, self.height / 2) triangle2.setCentreCoordinates(self.width / 2, self.height / 2) colors.printAvailableColors()
def __init__(self): super(graphicsWindow, self).__init__() # constructor for graphicsWindow class for i in range(0, len(triangles)): triangles[i].setCentreCoordinates(self.width / 2, self.height / 2) colors.printAvailableColors()