Was broken
This commit is contained in:
parent
e8c490c3f3
commit
b317914922
|
@ -45,11 +45,12 @@ class PalleteSchema :
|
|||
|
||||
def closest (self, comparison, space = 'BGR', pallete = None) :
|
||||
p = pallete if pallete is not None else self.pallete
|
||||
colors = normalize_colors(space, )
|
||||
colors = normalize_colors(space, p)
|
||||
|
||||
def normalize_colors (self, space = 'BGR', pallete = None) :
|
||||
colors = []
|
||||
for color in pallete :
|
||||
p = pallete if pallete is not None else self.pallete
|
||||
for color in p :
|
||||
colors.append(convert_color(color['color'], color['space'], space))
|
||||
return colors
|
||||
|
||||
|
|
Loading…
Reference in New Issue