Remove unused methods
This commit is contained in:
Ander
2015-01-22 00:56:44 +01:00
parent 469cbe2f82
commit 313fce75c1
14 changed files with 55 additions and 193 deletions

View File

@@ -43,12 +43,13 @@ class DynamicBackground():
# Otherwise a darker color will be returned
# White text should be seen ok with this background color
def get_similar_valid_color(color):
sum = color[0] + color[1] + color[2]
new_color = [0, 0, 0]
if sum > 510:
rest = (sum - 510)/3 + 1
for x in range(0,3):
for x in range(0, 3):
new_color[x] = color[x] - rest
return new_color
else:
@@ -70,4 +71,4 @@ def get_valid_color():
if extra > 0:
i = random.randint(0, 2)
color[i] -= extra
return color
return color