403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/colorsys.pyc

|_c@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/lib/python2.7/colorsys.pyR%scCs|d|d|}|d|d|}|d|d|}|dkrWd}n|dkrld}n|dkrd}n|dkrd}n|dkrd}n|dkrd}n|||fS(	NgD)X?gSh?gfb?g4Ry?gV?gvꭁ?gg?((R	R
RRRR((s/usr/lib/python2.7/colorsys.pyR+s 						cCst|||}t|||}||d}||krKd|dfS|dkrl||||}n||d||}||||}||||}||||}	||kr|	|}
n+||krd||	}
nd||}
|
dd}
|
||fS(Ng@gg?g@g@g?(tmaxtmin(RRRtmaxctminctltstrctgctbcth((s/usr/lib/python2.7/colorsys.pyRCs$

cCs|dkr|||fS|dkr6|d|}n||||}d||}t|||tt|||t|||tfS(Ngg?g?g@(t_vt	ONE_THIRD(RRRtm2tm1((s/usr/lib/python2.7/colorsys.pyRZs
cCsb|d}|tkr*||||dS|dkr:|S|tkr^|||t|dS|S(Ng?g@g?(t	ONE_SIXTHt	TWO_THIRD(RRthue((s/usr/lib/python2.7/colorsys.pyRds
cCst|||}t|||}|}||krCdd|fS|||}||||}||||}||||}	||kr|	|}
n+||krd||	}
nd||}
|
dd}
|
||fS(Ngg@g@g@g?(RR
(RRRRRtvRRRRR((s/usr/lib/python2.7/colorsys.pyRts 

cCs|dkr|||fSt|d}|d|}|d|}|d||}|d|d|}|d}|dkr|||fS|dkr|||fS|dkr|||fS|dkr|||fS|d	kr|||fS|d
kr
|||fSdS(Ngg@g?iiiiiii(tint(RRRR
tftpRtt((s/usr/lib/python2.7/colorsys.pyRs(






N(t__doc__t__all__RRRRRRRRRR(((s/usr/lib/python2.7/colorsys.pyt<module>s


				
		

Youez - 2016 - github.com/yon3zu
LinuXploit