init removed, back to inhereted namedtuple
This commit is contained in:
parent
08cd70e222
commit
13b2455675
@ -234,13 +234,7 @@ class table_C_P_A_L_(DefaultTable.DefaultTable):
|
|||||||
self.paletteEntryLabels = [self.NO_NAME_ID] * self.numPaletteEntries
|
self.paletteEntryLabels = [self.NO_NAME_ID] * self.numPaletteEntries
|
||||||
|
|
||||||
|
|
||||||
class Color:
|
class Color(namedtuple("Color", "blue green red alpha")):
|
||||||
|
|
||||||
def __init__(self, blue, green, red, alpha):
|
|
||||||
self.blue = blue
|
|
||||||
self.green = green
|
|
||||||
self.red = red
|
|
||||||
self.alpha = alpha
|
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return self.hex()
|
return self.hex()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user