color_transform.py 文件源码

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

项目:orange3-educational 作者: biolab 项目源码 文件源码
def rgb_hash_brighter(hash, percent_brighter):
    rgb = hex_to_rgb(hash)
    hls = list(rgb_to_hls(*rgb))
    hls[1] = min(1, hls[1] + percent_brighter * (1 - hls[1]))
    return rgb_to_hex(tuple(map(lambda x: int(x * 255), hls_to_rgb(*hls))))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号