项目作者: cafuneandchill

项目描述 :
A Python 3 tool for converting color list files to Dwarf Fortress colors.txt color scheme files.
高级语言: Python
项目地址: git://github.com/cafuneandchill/hex2dfcolors.git
创建时间: 2021-09-27T16:43:09Z
项目社区:https://github.com/cafuneandchill/hex2dfcolors

开源协议:

下载


hex2dfcolors

DISCLAIMER: The tool is currently untested, so use with caution and,
in case of bugs or unexpected program behaviour, please use the
Issues tab on GitHub.

A Python 3 tool for converting color list files
to Dwarf Fortress colors.txt color scheme files.

Usage

  1. hex2dfcolors.py COLOR_FILE OUTPUT

COLOR_FILE
: Path to the color list file

OUTPUT
: colors.txt file path

Color list file format

Example

  1. black=#282828
  2. red=#cc241d
  3. green=#98971a
  4. brown=#d79921
  5. blue=#458588
  6. magenta=#b16286
  7. cyan=#689d6a
  8. lgray=#a89984
  9. dgray=#928374
  10. lred=#fb4934
  11. lgreen=#b8bb26
  12. lyellow=#fabd2f
  13. lblue=#83a598
  14. lmagenta=#d3869b
  15. lcyan=#83c07c
  16. white=#ebdbb2

Usage of RGB colors
in rgb(R, G, B) format
is also acceptable, as well as
no # in the HEX format.