调色板模块

color-palette的Python项目详细描述


调色板

PyPI versionPyPI pyversions ^{1}$ StarsIssuesForks

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
或者您可以派生这个项目并创建一个请求。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java希望直接扫描要上传到网页的文档   java JavaFX使对象可见,但不使用(忽略)点击   java LibGdx奇怪的纹理行为   java JavaFx ComboBox在第一次单击时未获得正确的值   api WebDav服务器库最好使用Java   java在Android中维护应用程序状态   java保存在Android中拖放RecyclerView后所做的更改我已经阅读了所有内容   无法读取项目中所需库tomcatembedwebsocket的java存档,或者该存档不是有效的ZIP文件   c#类在系统中有哪些关联?如何在UML中最好地表示它们?   java如何使用bazaar访问两台计算机上的同一文件夹   Java易失性与缓存一致性   java如何解决http11。校长:例外?   java liferaymavenplugin从maven Liferay 6.2.5(6.2 ga6)部署war   安卓的jar for java在哪里。木卫一。文件   java邻接矩阵中BFS的顺序是什么?   虚拟机如何从java启动linux虚拟机?   向DefaultListModel添加元素时java JList未更新   java JMSListener批注无法与REST服务一起使用   java DirectoryStream返回路径的顺序是什么?文件名,上次修改,文件大小?   java DropWizard Hibernate doc想说什么?