@classmethod
    def XXXgetCssBoxShadowValues(cls, color, x=None, y=None, blur=None, inout=None):
        outcolor = ''
        if color == 'none':
            return None, 0, 0, 0, 0
        if isinstance(color, (list, tuple)):
            if len(color) == 4:
                outcolor, x, y, blur = color
            elif len(color) == 5:
                outcolor, x, y, blur, inout = color
        else:
            try:
                preformat = re.compile('(\w?) ?(\d+)px (\d+)px (\d+)px #(.+)')
                preformatrgb = re.compile('(.*)rgba\((.+)\)(.*)')
                m = preformatrgb.match(color)
                if m:
                    outcolor = 'rgba(' + m.group(2) + ')'
                    color = color.replace(outcolor, '')
                m = preformat.match(color)
                if m:
                    inout = m.group(1) or None
                    x = int(m.group(2))
                    y = int(m.group(3))
                    blur = int(m.group(4))
                    outcolor = '#' + m.group(5)
                else:
                    vals = color.split(' ')
                    if len(vals) > 1:
                        result = []
                        for s in color.split(' '):
                            s = s.strip()
                            if s.endswith('px'):
                                result.append(int(s[:-2]))
                            elif s.startswith('#'):
                                outcolor = s
                            elif s in ('inset', 'outset'):
                                inout = s
                        x, y, blur = result
            except __HOLE__:
                print '### [CssCanvas.getCssBoxShadowValues] Cannot process "%s" */' % result
                return 'black', 0, 0, False, inout
        return outcolor, x, y, blur, inout
dataset/ETHPy150Open petrvanblokland/Xierpa3/xierpa3/builders/sassbuilder.py/SassBuilder.XXXgetCssBoxShadowValues