helpers.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:intervene 作者: asntech 项目源码 文件源码
def get_colors(color_list):
    """
    Get color combinations for Venn diagram. This converts color names to RGBA 

    """
    rgba_colors = []
    a = [0.5,0.5,0.6,0.4,0.3,0.2]
    i = 0
    for c in color_list:
        rgba_colors.append(list(colors.to_rgba(c)))
        rgba_colors[i][3] = a[i]
        i+=1

    return rgba_colors
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号