def trans_color(color, alpha):
    """
    Makes solid color semi-transparent.
    
    Returns:
        (int, int, int, int)
            Red, green, blue and alpha channels.
    """
    
    if color[3] != 1.:
        return color
    
    return color[0], color[1], color[2], alpha