;
"Ic               @   ss   d  Z  d d d d d d g Z d Z d Z d Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z d S(   uJ  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]
(with the exception of I and Q, which covers a slightly larger range).
Inputs outside the valid range may cause exceptions or invalid outputs.

Supported color systems:
RGB: Red, Green, Blue components
YIQ: Luminance, Chrominance (used by composite video signals)
HLS: Hue, Luminance, Saturation
HSV: Hue, Saturation, Value
u
   rgb_to_yiqu
   yiq_to_rgbu
   rgb_to_hlsu
   hls_to_rgbu
   rgb_to_hsvu
   hsv_to_rgbg      ?g      @g      @g       @c             C   s[   d |  d | d | } d |  d | d | } d |  d | d	 | } | | | f S(
   Ng333333?gzG?g)\(?g333333?gQ?g{Gz?gzG?gp=
ף?gףp=
?(    (   u   ru   gu   bu   yu   iu   q(    (    u%   /mit/python/lib/python3.0/colorsys.pyu
   rgb_to_yiq%   s    c             C   s   |  d | d | } |  d | d | } |  d | d | } | d k  o
 d } n | d k  o
 d } n | d k  o
 d } n | d k o
 d } n | d k o
 d } n | d k o
 d } n | | | f S(	   NgD)X?gSh?gfb?g4Ry?gV?gvꭁ?g        g      ?(    (   u   yu   iu   qu   ru   gu   b(    (    u%   /mit/python/lib/python3.0/colorsys.pyu
   yiq_to_rgb+   s      
 
 
 
 
 
c             C   s  t  |  | |  } t |  | |  } | | d } | | k o d | d f S| d k o | | | | } n | | d | | } | |  | | } | | | | } | | | | }	 |  | k o |	 | }
 n. | | k o d | |	 }
 n d | | }
 |
 d d }
 |
 | | f S(   Ng       @g        g      ?g      @g      @g      ?(   u   maxu   min(   u   ru   gu   bu   maxcu   mincu   lu   su   rcu   gcu   bcu   h(    (    u%   /mit/python/lib/python3.0/colorsys.pyu
   rgb_to_hls=   s$        c             C   s   | d k o | | | f S| d k o | d | } n | | | | } d | | } t  | | |  t  t  | | |   t  | | |  t  f S(   Ng        g      ?g      ?g       @(   u   _vu	   ONE_THIRD(   u   hu   lu   su   m2u   m1(    (    u%   /mit/python/lib/python3.0/colorsys.pyu
   hls_to_rgbN   s      c             C   sh   | d } | t  k  o |  | |  | d S| d k  o | S| t k  o |  | |  t | d S|  S(   Ng      ?g      @g      ?(   u	   ONE_SIXTHu	   TWO_THIRD(   u   m1u   m2u   hue(    (    u%   /mit/python/lib/python3.0/colorsys.pyu   _vU   s    
   c             C   s   t  |  | |  } t |  | |  } | } | | k o d d | f S| | | } | |  | | } | | | | } | | | | }	 |  | k o |	 | }
 n. | | k o d | |	 }
 n d | | }
 |
 d d }
 |
 | | f S(   Ng        g       @g      @g      @g      ?(   u   maxu   min(   u   ru   gu   bu   maxcu   mincu   vu   su   rcu   gcu   bcu   h(    (    u%   /mit/python/lib/python3.0/colorsys.pyu
   rgb_to_hsvb   s        c             C   s  | d k o | | | f St  |  d  } |  d | } | d | } | d | | } | d | d | } | d } | d k o | | | f S| d k o | | | f S| d k o | | | f S| d k o | | | f S| d	 k o | | | f S| d
 k o | | | f Sd  S(   Ng        g      @g      ?i   i    i   i   i   i   i   (   u   int(   u   hu   su   vu   iu   fu   pu   qu   t(    (    u%   /mit/python/lib/python3.0/colorsys.pyu
   hsv_to_rgbq   s(     
      NgUUUUUU?gUUUUUU?gUUUUUU?(   u   __doc__u   __all__u	   ONE_THIRDu	   ONE_SIXTHu	   TWO_THIRDu
   rgb_to_yiqu
   yiq_to_rgbu
   rgb_to_hlsu
   hls_to_rgbu   _vu
   rgb_to_hsvu
   hsv_to_rgb(    (    (    u%   /mit/python/lib/python3.0/colorsys.pyu   <module>   s   						