예제 #1
0
    def scaleAll(self, scale):
        """ Scale all wireframes by a given scale, centred on the centre of the screen. """
        centre_x = self.width/2
        centre_y = self.height/2

        for wireframe in self.wireframes.itervalues():
            wireframe.scale((centre_x, centre_y), scale)
예제 #2
0
    def scaleAll(self, scale):
        """ Scale all wireframes by a given scale, centred on the centre of the screen. """

        centre_x = self.width/2
        centre_y = self.height/2

        for wireframe in self.wireframes.itervalues():
            wireframe.scale((centre_x, centre_y), scale)
예제 #3
0
 def scale_all(self, scale):
     '''
     Scale all the wireframes on the the screen.
     Args:
         :param scale: (float) The parameter (scale>1-bigger, scale<1-smaller) telling pygame to scale the wireframes up or down.
     '''
     center_x, center_y = self.width / 2, self.height / 2
     for _, wireframe in self.wireframes.items():
         wireframe.scale(center_x, center_y, scale)
예제 #4
0
 def scaleAll(self, scale):
     for wireframe in self.wireframes.values():
         wireframe.scale(scale)
예제 #5
0
 def scale_all(self, scale):
     center_x = SCREEN_WIDTH / 2
     center_y = SCREEN_HEIGHT / 2
     for wireframe in self.wireframes.itervalues():
         wireframe.scale((center_x, center_y), scale)
예제 #6
0
	def scaleAll(self, scale, center):
		center_x = center[0]
		center_y = center[1]

		for wireframe in self.wireframes.itervalues():
			wireframe.scale((center_x, center_y), scale)