mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-05 06:35:43 +00:00
Background color related to album
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user