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)
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)
def scaleAll(self, scale): for wireframe in self.wireframes.values(): wireframe.scale(scale)
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)
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)