| colorsys | index /usr/lib/python1.6/colorsys.py |
Conversion functions between RGB and other color systems.
This modules provides two functions for each color system ABC:
rgb_to_abc(r, g, b) --> a, b, c
abc_to_rgb(a, b, c) --> r, g, b
All inputs and outputs are triples of floats in the range [0.0...1.0].
Inputs outside this range may cause exceptions or invalid outputs.
Supported color systems:
RGB: Red, Green, Blue components
YIQ: used by composite video signals
HLS: Hue, Luminance, Saturation
HSV: Hue, Saturation, Value
| Functions | ||
| ||
| Data | ||
| ONE_SIXTH = 0.16666666666666666 ONE_THIRD = 0.33333333333333331 TWO_THIRD = 0.66666666666666663 __file__ = '/usr/lib/python1.6/colorsys.pyc' __name__ = 'colorsys' | ||