File: README

package info (click to toggle)
webcolors 1.4-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 88 kB
  • ctags: 38
  • sloc: python: 273; makefile: 18
file content (22 lines) | stat: -rw-r--r-- 490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Support is included for the following formats (RGB colorspace only;
conversion to/from HSL can be handled by the ``colorsys`` module in
the Python standard library):

* Specification-defined color names

* Six-digit hexadecimal

* Three-digit hexadecimal

* Integer rgb() triplet

* Percentage rgb() triplet

For example::

    >>> import webcolors
    >>> webcolors.hex_to_name('#daa520')
    'goldenrod'

Full documentation is `available online
<http://docs.b-list.org/webcolors/1.4/>`_.