You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
visualizer.py", line 213, in plot_bars self.prev_screen.set_alpha(self.prev_screen.get_alpha()*self.alpha_multiplier) TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
#15
Open
faranaziz opened this issue
Jul 18, 2021
· 2 comments
I added .convert_alpha() to the screen.copy() definition. Then it startet working for me
The hole think looks like this now:
if self.plot_audio_history:
self.prev_screen = self.screen.copy().convert_alpha()
self.prev_screen = pygame.transform.rotate(self.prev_screen, 180)
self.prev_screen.set_alpha(self.prev_screen.get_alpha() * self.alpha_multiplier)
On windows is get
The text was updated successfully, but these errors were encountered: