diff --git a/background.py b/background.py index 097a092..70312f3 100644 --- a/background.py +++ b/background.py @@ -1,4 +1,6 @@ import pygame +import colorsys + class Background: def __init__(self): self.sprite = pygame.image.load('data/gfx/bg.png') @@ -8,4 +10,4 @@ def setSprite(self, tint): copy = self.uncoloredSprite.copy() color = colorsys.hsv_to_rgb(tint,1,1) copy.fill((color[0]*255, color[1]*255, color[2]*255), special_flags=pygame.BLEND_ADD) - self.sprite = copy \ No newline at end of file + self.sprite = copy