[ 源代码: webcolors ]
软件包:python3-webcolors(1.5-2)
python3 library of color names and value formats
For python3, support is included for the following formats, but this support RGB colorspace only.
* Specification-defined color names * Six-digit hexadecimal * Three-digit hexadecimal * Integer rgb() triplet * Percentage rgb() tripletThis module conversion to/from HSL can be handled by the "colorsys" module in the Python standard library.