init removed, back to inhereted namedtuple

This commit is contained in:
Jan Sindler 2020-03-23 12:22:02 +01:00
parent 08cd70e222
commit 13b2455675

View File

@ -234,13 +234,7 @@ class table_C_P_A_L_(DefaultTable.DefaultTable):
self.paletteEntryLabels = [self.NO_NAME_ID] * self.numPaletteEntries
class Color:
def __init__(self, blue, green, red, alpha):
self.blue = blue
self.green = green
self.red = red
self.alpha = alpha
class Color(namedtuple("Color", "blue green red alpha")):
def __repr__(self):
return self.hex()