Was broken

This commit is contained in:
Matt McWilliams 2023-11-21 23:42:16 -05:00
parent e8c490c3f3
commit b317914922
1 changed files with 3 additions and 2 deletions

View File

@ -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