config root man

Current Path : /usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/colorsys.pyo

hRc@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/local/lib/python2.5/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/local/lib/python2.5/colorsys.pyR+s 











cCs"t|||}t|||}||d}||jod|dfSn|djo||||}n||d||}||||}||||}||||}	||jo|	|}
n.||jod||	}
nd||}
|
dd}
|
||fS(Ng@gg?g@g@g?(tmaxtmin(RRRtmaxctminctltstrctgctbcth((s$/usr/local/lib/python2.5/colorsys.pyR=s$



cCs|djo|||fSn|djo|d|}n||||}d||}t|||tt|||t|||tfS(Ngg?g?g@(t_vt	ONE_THIRD(RRRtm2tm1((s$/usr/local/lib/python2.5/colorsys.pyRNs

cCsq|d}|tjo||||dSn|djo|Sn|tjo|||t|dSn|S(Ng?g@g?(t	ONE_SIXTHt	TWO_THIRD(RRthue((s$/usr/local/lib/python2.5/colorsys.pyRUs



cCst|||}t|||}|}||jodd|fSn|||}||||}||||}||||}	||jo|	|}
n.||jod||	}
nd||}
|
dd}
|
||fS(Ngg@g@g@g?(RR
(RRRRRtvRRRRR((s$/usr/local/lib/python2.5/colorsys.pyRbs 


cCs.|djo|||fSnt|d}|d|}|d|}|d||}|d|d|}|ddjo|||fSn|djo|||fSn|djo|||fSn|djo|||fSn|d	jo|||fSn|d
jo|||fSndS(Ngg@g?iiiiiii(tint(RRRR
tftpRtt((s$/usr/local/lib/python2.5/colorsys.pyRqs&





N(t__doc__t__all__RRRRRRRRRR(((s$/usr/local/lib/python2.5/colorsys.pys<module>s


					
	

Man Man