颜色方案生成器。

colorz的Python项目详细描述


Color preview.

颜色方案生成器。

安装

pip install colorz

或者把colorz.py移到$PATH中的某个位置。 如果执行后者,则必须在 手动执行以下部分。

依赖关系

  • Python(2或3)
  • 枕头
  • scipy

用法

usage: colorz [-h] [-n NUM_COLORS] [--minv MINV] [--maxv MAXV] [--bold BOLD]
              [--font-size FONT_SIZE] [--bg-color BG_COLOR] [--no-bg-img]
              [--no-preview]
              image

A color scheme generator. Takes an image (local or online) and grabs the most
dominant colors using kmeans. Also creates bold colors by adding value to the
dominant colors. Finally, outputs the colors to stdout (one normal and one
bold per line, space delimited) and generates an HTML preview of the color
scheme.

positional arguments:
  image                 the image file or url to generate from.

optional arguments:
  -h, --help            show this help message and exit
  -n NUM_COLORS         number of colors to generate (excluding bold).
                        Default: 6
  --minv MINV           minimum value for the colors. Default: 170
  --maxv MAXV           maximum value for the colors. Default: 200
  --bold BOLD           how much value to add for bold colors. Default: 50
  --font-size FONT_SIZE
                        what font size to use, in rem. Default: 1
  --bg-color BG_COLOR   what background color to use, in hex format. Default:
                        #272727
  --no-bg-img           whether or not to use a background image in the
                        preview. Default: background image on
  --no-preview          whether or not to generate and show the preview.
                        Default: preview on

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

推荐PyPI第三方库


热门话题
java在Rally中的新测试文件夹下创建新测试用例   如何使用Selenium Webdriver和Java编写定位器来单击img?   while循环中的java异常处理   java发布自定义事件并在基于SpringMVC的Rest应用程序中异步处理它   java我可以在两个设备之间创建socket,其中一个设备连接到wifi internet,另一个连接到3G或2G internet。?   java提供了一个项目列表(不同类型),如何将它们分开,以便每个组只包含相同类型的项目   java如何在JBPM 6中获取和设置进程的局部变量列表?   java将Spring批处理连接到Spring集成工作流   java如何在安卓中使用Gson反序列化LocalDateTime?   java如何在openmrs和spring中分割值复杂数据?   java高效地在一组数字中查找组合   java缩小继承的返回类型(涉及泛型)   java SSLEngine提供需要\u在展开服务器后展开hello done   java JPA限制'queryResultList',即使'setMaxResults'未定义   java JTable着色?   java 安卓在移动到其他活动时保留内存   在Hibernate中用MySQL模拟延迟约束   如何将Java数组字符串写入Json文件