webcolors
  • Installation guide
    • Normal installation
    • Manual installation
    • Installing from a source checkout
  • An overview of colors on the Web
    • HTML 4
    • CSS 1
    • CSS 2
    • CSS 3
    • HTML5
    • What this module supports
  • Normalization and conventions
    • Python string types
    • Hexadecimal color values
    • Integer and percentage rgb() triplets
    • Color names
      • Identifying sets of named colors
  • Module contents
    • Constants
      • Mappings from names to hexadecimal values
      • Mappings from hexadecimal values to names
    • Normalization functions
    • Conversions from color names to other formats
      • Conversion from hexadecimal color values to other formats
    • Conversions from integer rgb() triplets to other formats
    • Conversions from percentage rgb() triplets to other formats
    • HTML5 color algorithms
  • Conformance and testing
    • The normal test suite
    • Verifying color definitions
    • Fully verifying correctness of conversions
  • Frequently asked questions
    • What versions of Python are supported?
    • How closely does this module follow the standards?
    • Why aren’t rgb_to_rgb_percent() and rgb_percent_to_rgb() precise?
    • Why aren’t HSL values supported?
    • Why not use a more object-oriented design with classes for the colors?
    • How am I allowed to use this module?
    • I found a bug or want to make an improvement!
 
webcolors
  • Docs »

Index

C | H | N | R | W

C

CSS21_HEX_TO_NAMES (in module webcolors)
CSS21_NAMES_TO_HEX (in module webcolors)
CSS2_HEX_TO_NAMES (in module webcolors)
CSS2_NAMES_TO_HEX (in module webcolors)
CSS3_HEX_TO_NAMES (in module webcolors)
CSS3_NAMES_TO_HEX (in module webcolors)

H

hex_to_name() (in module webcolors)
hex_to_rgb() (in module webcolors)
hex_to_rgb_percent() (in module webcolors)
HTML4_HEX_TO_NAMES (in module webcolors)
HTML4_NAMES_TO_HEX (in module webcolors)
html5_parse_legacy_color() (in module webcolors)
html5_parse_simple_color() (in module webcolors)
html5_serialize_simple_color() (in module webcolors)

N

name_to_hex() (in module webcolors)
name_to_rgb() (in module webcolors)
name_to_rgb_percent() (in module webcolors)
normalize_hex() (in module webcolors)
normalize_integer_triplet() (in module webcolors)
normalize_percent_triplet() (in module webcolors)

R

rgb_percent_to_hex() (in module webcolors)
rgb_percent_to_name() (in module webcolors)
rgb_percent_to_rgb() (in module webcolors)
rgb_to_hex() (in module webcolors)
rgb_to_name() (in module webcolors)
rgb_to_rgb_percent() (in module webcolors)

W

webcolors (module)

© Copyright 2008-2016, James Bennett.

Built with Sphinx using a theme provided by Read the Docs.