Пример #1
0
 def __init__(self, C=1.0, M=1.0, Y=1.0, *args, **kwargs):  # default: Black
     """ Init with C, M, Y values """
     cB.__init__(self, *args, **kwargs)
     self.type = 'CMY'  # can be used instead of isinstance on an object
     self.C, self.M, self.Y = C, M, Y
Пример #2
0
 def __init__(self, Y=0.0, I=0.0, Q=0.0, *args, **kwargs):  # default: Black
     """ Init with Y, I, Q values """
     cB.__init__(self, *args, **kwargs)
     self.type = 'YIQ'  # can be used instead of isinstance on an object
     self.Y, self.I, self.Q = Y, I, Q