颜色方案生成器。

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从XML文本中提取数据   使用JAVA在“Bixolon热敏打印机”上打印,“未找到页面!”错误   Java8流:每个流   java如何使用JRootPane修改JFrame?   如何在java中获取出错的行号?   为什么JavaCompiler在实例化Java类时速度很慢?   Java Swing计时器类中可能存在的错误   从抽象类返回Java上的泛型对象   java流式传输来自JAXRS响应的pdf文件:url的“401:Unauthorized”   java呈现线性布局似乎很慢   如何使用java将具有重叠的多个分割图像合并回原始图像?   java使用DatagramPacket从一个客户端向另一个客户端发送数据   linux如何使用java代码中运行的Service statusall | grep获取结果我的代码没有给出结果?   使用Java ZipFile类解压缩ZIP文件   java Elasticsearch集成测试和springtest不能很好地协同工作AccessControlException   一种增强java集合的区间树生成算法   在JDK之外使用附加API的兼容性