grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026o ®û|j±ã@sTdZgd¢ZdZdZdZdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dS)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ú//opt/alt/python310/lib64/python3.10/colorsys.pyr(s rcCsŽ|d|d|}|d|d|}|d|d|}|dkr$d}|dkr*d}|dkr0d}|dkr6d}|dkr| |} n||krId|| } nd||} | dd} | ||fS)Nrrrrrr) rr r rrÚvrrrrrrrrr}s        rcCsÒ|dkr |||fSt|dƒ}|d|}|d|}|d||}|d|d|}|d}|dkr:|||fS|dkrC|||fS|dkrL|||fS|dkrU|||fS|d kr^|||fS|d krg|||fSdS) Nrrrééééééé)Úint)rrr&r ÚfÚpr Útrrrr�s*          ÿrN) Ú__doc__Ú__all__r!r$r%rrrrr rrrrrrÚs