def METHOD_NAME(element):
    """
    Turn an XML element into a (4,) np.uint8 RGBA color
    """
    if element is None:
        return visual.DEFAULT_COLOR
    hexcolor = int(element.attrib['Color'].replace('#', ''), 16)
    opacity = float(element.attrib['Opacity'])
    rgba = [(hexcolor >> 16) & 0xFF,
            (hexcolor >> 8) & 0xFF,
            (hexcolor & 0xFF),
            opacity * 0xFF]
    rgba = np.array(rgba, dtype=np.uint8)
    return rgba