From 50511264e7c12bf11614def1081f37d5869c3d61 Mon Sep 17 00:00:00 2001 From: PrathameshGandule <148341009+PrathameshGandule@users.noreply.github.com> Date: Sun, 17 Mar 2024 18:16:29 +0530 Subject: [PATCH] Update background.py imported colorsys package in background.py which was missing --- background.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background.py b/background.py index 097a092..fc7c553 100644 --- a/background.py +++ b/background.py @@ -1,4 +1,4 @@ -import pygame +import pygame, colorsys class Background: def __init__(self): self.sprite = pygame.image.load('data/gfx/bg.png') @@ -8,4 +8,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