📜  python rgb to hex - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:24.399000             🧑  作者: Mango

代码示例6
import matplotlib

print(matplotlib.colors.to_hex([ 0.47, 0.0, 1.0 ]))
print(matplotlib.colors.to_hex([ 0.7, 0.321, 0.3, 0.5 ], keep_alpha=True))

print(matplotlib.colors.to_rgb("#aabbcc"))
print(matplotlib.colors.to_rgb("#ddee9f"))