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) :
|
def closest (self, comparison, space = 'BGR', pallete = None) :
|
||||||
p = pallete if pallete is not None else self.pallete
|
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) :
|
def normalize_colors (self, space = 'BGR', pallete = None) :
|
||||||
colors = []
|
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))
|
colors.append(convert_color(color['color'], color['space'], space))
|
||||||
return colors
|
return colors
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue