git_music_visualize_4.py 204 B

1234567
  1. def scalePercentage(self, surface, perc):
  2. screenRect = self.screen.get_rect()
  3. surface = pygame.transform.scale(surface, (int(perc*screenRect.width),
  4. int(perc*screenRect.height)))
  5. return surface