uawdijnntqw1x1x1
IP : 18.119.118.237
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
.
/
..
/
lib64
/
bpf
/
..
/
.
/
gconv
/
..
/
.
/
python3.8
/
__pycache__
/
colorsys.cpython-38.pyc
/
/
U e5d��@s\dZddddddgZdZdZd Zd d�Zdd�Zdd�Zd d�Zdd�Z dd�Z dd�ZdS)aJConversion 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 � rgb_to_yiq� yiq_to_rgb� rgb_to_hls� hls_to_rgb� rgb_to_hsv� hsv_to_rgbgUUUUUU�?gUUUUUU�?gUUUUUU�?cCsRd|d|d|}d||d||}d||d||}|||fS)Ng333333�?g�z�G��?g)\��(�?g�G�z��?gH�z�G�?g���Q��?g= ףp=�?�)�r�g�b�y�i�qrr� /usr/lib64/python3.8/colorsys.pyr(scCs�|d|d|}|d|d|}|d|d|}|dkrHd}|dkrTd}|dkr`d}|dkrld}|dkrxd}|dkr�d}|||fS) Ng2r��L�?g����,��?g:�����?g�nєW�?g6����?gJ"�X�?���?r)rrr rr r rrrr.s cCs�t|||�}t|||�}||d}||kr6d|dfS|dkrP||||}n||d||}||||}||||}||||} ||kr�| |} n"||kr�d|| } nd||} | dd} | ||fS)N�@r��?�@�@r��max�min)rr r �maxc�minc�l�s�rc�gc�bc�hrrrrKs$ cCsn|dkr|||fS|dkr(|d|}n||||}d||}t|||t�t|||�t|||t�fS)Nrrrr)�_v� ONE_THIRD)rrr�m2�m1rrrrbs cCsT|d}|tkr$||||dS|dkr0|S|tkrP|||t|dS|S)Nrrr)� ONE_SIXTH� TWO_THIRD)r#r"Zhuerrrr lsr cCs�t|||�}t|||�}|}||kr.dd|fS|||}||||}||||}||||} ||kr|| |} n"||kr�d|| } nd||} | dd} | ||fS)Nrrrrrr)rr r rr�vrrrrrrrrr|s cCs�|dkr|||fSt|d�}|d|}|d|}|d||}|d|d|}|d}|dkrt|||fS|dkr�|||fS|dkr�|||fS|dkr�|||fS|d kr�|||fS|d kr�|||fSdS)Nrrr�������)�int)rrr&r�f�pr �trrrr�s( N)�__doc__�__all__r!r$r%rrrrr rrrrrr�<module>s�
/home/./../lib64/bpf/.././gconv/.././python3.8/__pycache__/colorsys.cpython-38.pyc