调色板模块
color-palette的Python项目详细描述
调色板
Python包易于着色
安装
github公司:
python -m pip install git+https://github.com/SnowballSH/color_palette.git@master
皮普:
^{pr2}$使用
fromcolor_paletteimportColor,mix,presetsmy_rgb=Color((255,0,0))# You can either call on rbgprint(my_rgb)# You can print the different values with both hex and rgbmy_hex=rgb.switch("hex")# You can switch from rgb to hex using this or the .to_rbg and .to_hex commandscyan=presets.cyan# get preset colors to code quickermixed=mix([my_rgb,cyan])# You can even mix them together!yellow=presets.yellow[1.6]# You can get shades and tints for colors by using [amount] after color -- 0 is the original colorprint(yellow)# In this case, 'yellow' is a light yellow color with 1.6 times lighter than normal.
贡献
发现虫子了?有什么建议吗?创建问题here。
或者您可以派生这个项目并创建一个请求。在
- 项目
标签: