我有一些十六进制颜色代码:
#ff9b9b
#ff5656
#ff0202
#ad0000
#871515
我想与调色板同时显示相应的颜色,以方便地选择我想要的颜色。
有没有推荐的在线工具,或者我们可以在命令行中使用? 有一些工具只能同时显示一种颜色,但是我想一次显示几种颜色。
非常感谢!
答案 0 :(得分:0)
如果您希望使用python代码,可以使用colored,下面是选择字体颜色和背景颜色的示例。
from colored import fg, bg, attr
color = fg('#C0C0C0') + bg('#00005f') # create font and background color
res = attr('reset') # adding that to string that we print reset current colors
print(color + "Hello World !!!" + res)