Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /usr/lib64/python2.6/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.6/colorsys.pyc
Lc@sdZddddddgZddZdd	Zd
dZdZdZd
ZdZdZ	dZ
dZdS(sJConversion 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
t
rgb_to_yiqt
yiq_to_rgbt
rgb_to_hlst
hls_to_rgbt
rgb_to_hsvt
hsv_to_rgbg?g@g@g@cCs[d|d|d|}d|d|d|}d|d|d	|}|||fS(
Ng333333?gzG?g)\(?g333333?gQ?g{Gz?gzG?gp=
ף?gףp=
?((trtgtbtytitq((s /usr/lib64/python2.6/colorsys.pyR%scCs|d|d|}|d|d|}|d|d|}|djo
d}n|djo
d}n|djo
d}n|djo
d}n|djo
d}n|djo
d}n|||fS(	NgD)X?gSh?gfb?g4Ry?gV?gvꭁ?gg?((R	R
RRRR((s /usr/lib64/python2.6/colorsys.pyR+s 











cCst|||}t|||}||d}||jod|dfS|djo||||}n||d||}||||}||||}||||}	||jo|	|}
n.||jod||	}
nd||}
|
dd}
|
||fS(Ng@gg?g@g@g?(tmaxtmin(RRRtmaxctminctltstrctgctbcth((s /usr/lib64/python2.6/colorsys.pyR=s$



cCs|djo|||fS|djo|d|}n||||}d||}t|||tt|||t|||tfS(Ngg?g?g@(t_vt	ONE_THIRD(RRRtm2tm1((s /usr/lib64/python2.6/colorsys.pyRNs

cCsh|d}|tjo||||dS|djo|S|tjo|||t|dS|S(Ng?g@g?(t	ONE_SIXTHt	TWO_THIRD(RRthue((s /usr/lib64/python2.6/colorsys.pyRUs



cCst|||}t|||}|}||jodd|fS|||}||||}||||}||||}	||jo|	|}
n.||jod||	}
nd||}
|
dd}
|
||fS(Ngg@g@g@g?(RR
(RRRRRtvRRRRR((s /usr/lib64/python2.6/colorsys.pyRbs 


cCs|djo|||fSt|d}|d|}|d|}|d||}|d|d|}|d}|djo|||fS|djo|||fS|djo|||fS|djo|||fS|d	jo|||fS|d
jo|||fSdS(Ngg@g?iiiiiii(tint(RRRR
tftpRtt((s /usr/lib64/python2.6/colorsys.pyRqs(







N(t__doc__t__all__RRRRRRRRRR(((s /usr/lib64/python2.6/colorsys.pyt<module>s


					
	

haha - 2025