D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
lib
/
python3.14
/
__pycache__
/
Filename :
colorsys.cpython-314.pyc
back
Copy
+ ��3j� � �H � R t . R OtR tRtRtR tR tR tR tR t R t R tR# ) aJ 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 c �� � R V , RV, , RV, , pRW, , RW#, , , pRW, , RW#, , , pW4V3# )g333333�?g�z�G��?g)\��(�?g�G�z��?gH�z�G�?g���Q��?g= ףp=�?� )�r�g�b�y�i�qs &&& �/usr/lib/python3.14/colorsys.py� rgb_to_yiqr ( sR � ��Q���a���$�q�&� �A��a�c� �T�1�3�Z��A��a�c� �T�1�3�Z��A� �!�9�� c �* � V R V, , RV, , pV RV, , RV, , pV RV, , RV, , pVR8 d RpVR8 d RpVR8 d RpVR8� d RpVR8� d RpVR8� d RpW4V3# )g2r��L�?g����,��?g:�����?g�nєW�?g6����?gJ"�X�?� � �?r )r r r r r r s &&& r � yiq_to_rgbr . s� � � ��q� � �#5�a�#7�7�A� ���!�!�$6�q�$8�8�A� ��q� � �#5�a�#7�7�A��3�w����3�w����3�w����3�w����3�w����3�w��� �!�9�r c � � \ WV4 p\ WV4 pW4, pW4, pVR , pWC8X d RVR3# VR8: d We, pMVR V, V, , pW0, V, p W1, V, p W2, V, pW8X d W�, pM'W8X d R V , V, pMRV , V , pVR, R, pW�V3# )� @r � �?� @� @r ��max�min) r r r �maxc�minc�sumc�rangec�l�s�rc�gc�bc�hs &&& r � rgb_to_hlsr# K s� � ��q�Q�<�D��q�Q�<�D��I�D��i�F��S��A��|��A�s�{���C�x��M���c�$�h�t�m�$�� �&�F� �B� �&�F� �B� �&�F� �B��y��E�� ����F�2�I����F�2�I�� �3��#� �A���7�Nr c � � VR 8X d WV3# VR8: d VRV, , pMW, W, , pRV, V, p\ WCV \ , 4 \ WCV 4 \ WCV \ , 4 3# )r r r r )�_v� ONE_THIRD)r"