관리-도구
편집 파일: colorsys.cpython-33.pyo
� ��fk c @ s� d Z d d d d d d g Z d Z d Z d Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d 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�?g�z�G��?g)\��(�?g333333�?g�Q����?g{�G�z�?g�z�G��?g�p= ף�?gףp= ��?( ( u ru gu bu yu iu q( ( u- /opt/alt/python33/lib64/python3.3/colorsys.pyu rgb_to_yiq% s c C s� | d | d | } | d | d | } | d | d | } | d k rW d } n | d k rl d } n | d k r� d } n | d k r� d } n | d k r� d } n | d k r� d } n | | | f S( NgD��)X�?gS�h��?g�fb���?g��4�Ry�?g���V��?gv�ꭁ��?g g �?( ( u yu iu qu ru gu b( ( u- /opt/alt/python33/lib64/python3.3/colorsys.pyu yiq_to_rgb+ s c C s t | | | � } t | | | � } | | d } | | k rK d | d f S| d k rl | | | | } n | | d | | } | | | | } | | | | } | | | | } | | k r� | | } n+ | | k r� 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- /opt/alt/python33/lib64/python3.3/colorsys.pyu rgb_to_hlsC s$ c C s� | d k r | | | f S| d k r6 | 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- /opt/alt/python33/lib64/python3.3/colorsys.pyu hls_to_rgbZ s c C sb | d } | t k r* | | | | d S| d k r: | S| t k r^ | | | t | d S| S( Ng �?g @g �?( u ONE_SIXTHu TWO_THIRD( u m1u m2u hue( ( u- /opt/alt/python33/lib64/python3.3/colorsys.pyu _vd s u _vc C s� t | | | � } t | | | � } | } | | k rC d d | f S| | | } | | | | } | | | | } | | | | } | | k r� | | } n+ | | k r� 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- /opt/alt/python33/lib64/python3.3/colorsys.pyu rgb_to_hsvt s c C s | d k r | | | f St | d � } | d | } | d | } | d | | } | d | d | } | d } | d k r� | | | f S| d k r� | | | f S| d k r� | | | f S| d k r� | | | f S| d k r� | | | f S| d k r | | | f Sd S( Ng g @g �?i i i i i i i ( u int( u hu su vu iu fu pu qu t( ( u- /opt/alt/python33/lib64/python3.3/colorsys.pyu hsv_to_rgb� 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- /opt/alt/python33/lib64/python3.3/colorsys.pyu <module> s