

def __init__(self, string=None, raw=None):
    if (((string is None) and (raw is None)) or ((string is not None) and (raw is not None))):
        raise TypeError('expected one argument')
    self.allocated = 0
    if (raw is None):
        self.raw = ctypes.create_string_buffer(ctypes.sizeof(MagickPixelPacket))
        with self:
            library.PixelSetColor(self.resource, binary(string))
            library.PixelGetMagickColor(self.resource, self.raw)
    else:
        self.raw = raw

dataset/ETHPy150Open dahlia/wand/wand/color.py Color.__init__/original