Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions background.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pygame
import pygame, colorsys
class Background:
def __init__(self):
self.sprite = pygame.image.load('data/gfx/bg.png')
Expand All @@ -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
self.sprite = copy