Background color related to album

This commit is contained in:
Ander
2015-01-09 02:09:13 +01:00
parent 81b173fbf8
commit e8b61e2392
3 changed files with 12 additions and 6 deletions

View File

@@ -15,10 +15,13 @@ class DynamicBackground():
self.current[x] += 1
if self.current != self.target:
same = False
if same:
self.target = get_valid_color()
#if same:
# self.target = get_valid_color()
surface.fill(self.current)
def set_target_color(self, color):
self.target = [color[0], color[1], color[2]]
# Returns an array with 3 integers in range of 0-255
# The sum of the three integers will be lower than 255*2