def get_color_vec(cs):
    """Converts a color string to a color vector.

    The color vector counts the number of mana symbols in the cost. 
    W or w corresponds to [1,0,0,0,0]
    U or u corresponds to [0,1,0,0,0]
    B or b corresponds to [0,0,1,0,0]
    R or r corresponds to [0,0,0,1,0]
    G or g corresponds to [0,0,0,0,1]

    Numeric/colorless symbols are ignored.

    Some other characters are supported for multi/hybrid costs.
    
    :param cs: String containing colored mana symbols.
    
    :return: Color vector with WUBRG components.
    """
    #Handle colorless case.
    cv = [0,0,0,0,0]
    if isinstance(cs, int):
        return cv
    
    #Group characters into WUBRG. Other characters for legacy compatibility.
    for letter in cs:
        if letter in "WwAaVvSsYy":
            cv[0] += 1
        if letter in "UuAaDdMmZz":
            cv[1] += 1
        if letter in "BbDdIiVvKk":
            cv[2] += 1
        if letter in "RrLlSsZzKk":
            cv[3] += 1
        if letter in "GgMmIiYyLl":
            cv[4] += 1
    return cv