
    &hG                        S r SSKrSSKrSSKJrJrJrJrJrJ	r	J
r
JrJr  S r\R                  R                  \R                  R!                  \5      5      S   r\R                  R'                  \S5      rS r\S:X  a  \" 5         gg)a  pygame.examples.blend_fill

BLEND_ing colors in different ways with Surface.fill().

Keyboard Controls:

* Press R, G, B to increase the color channel values,
* 1-9 to set the step range for the increment,
* A - ADD, S- SUB, M- MULT, - MIN, + MAX to change the blend modes

    N)	K_1K_2K_3K_4K_5K_6K_7K_8K_9c                  \    [        S5        [        S5        [        S5        [        S5        g )Nz3Press R, G, B to increase the color channel values,z,1-9 to set the step range for the increment,z&A - ADD, S- SUB, M- MULT, - MIN, + MAXz  to change the blend modes)print     R/var/www/auris/envauris/lib/python3.13/site-packages/pygame/examples/blend_fill.pyusager      s&    	
?@	
89	
23	
'(r   datac                  	   / SQn SnSnSn[         R                  " 5         [         R                  R                  SSS5      nUR	                  S5        [         R
                  R                  [        R                  R                  [        S5      5      R                  5       n[         R
                  R                  [        R                  R                  [        S5      5      R                  5       nUR                  US	5        UR                  US
5        [         R                  R                  5         [         R                  R                  SS5        [!        5         SnU(       GaG  [         R"                  R%                  5        GH  nUR&                  [         R(                  :X  a  SnUR&                  [         R*                  :X  Ga)  [!        5         UR                  [         R,                  :X  a  SnUR                  [         R.                  :X  a  U S==   U-  ss'   U S   S:  a  SU S'   SnGOUR                  [         R0                  :X  a  U S==   U-  ss'   U S   S:  a  SU S'   SnGOUR                  [         R2                  :X  a  U S==   U-  ss'   U S   S:  a  SU S'   SnGOHUR                  [         R4                  :X  a  [         R6                  nSnGOUR                  [         R8                  :X  a  [         R:                  nSnOUR                  [         R<                  :X  a  [         R>                  nSnOUR                  [         R@                  :X  a  [         RB                  nSnOUR                  [         RD                  :X  a  [         RF                  nSnORUR                  [H        [J        [L        [N        [P        [R        [T        [V        [X        4	;   a  [[        UR\                  5      nU(       d  GMv  UR	                  S5        UR                  US	5        UR                  US5        UR	                  U S U5        UR                  US
5        [_        S[a        U 5       SURc                  S5      / 35        Sn[         R                  R                  5         GM     U(       a  GMG  [         Rd                  " 5         g )N)r   r   r   Fr      )i  i      )d   r   r   z
liquid.bmp)
   r   )   r   i     T         )r   r   zColor: z, Pixel (0,0): )3pginitdisplayset_modefillimageloadospathjoindata_dirconvertblitflipkey
set_repeatr   eventgettypeQUITKEYDOWNK_ESCAPEK_rK_gK_bK_a	BLEND_ADDK_s	BLEND_SUBK_m
BLEND_MULTK_PLUS	BLEND_MAXK_MINUS	BLEND_MINr   r   r   r   r   r   r	   r
   r   intunicoder   tupleget_atquit)	colorchanged	blendtypestepscreenr"   
blendimagegoingr-   s	            r   mainrL      s<   EGIDGGIZZ  Q3F
KK HHMM"'',,x>?GGIErww||HlCDLLNJ
KKx 
KK
I&JJOOFFc2	GE
XX\\^EzzRWW$zzRZZ'99+!E99&!H$HQx#~#$a"GYY"&&(!H$HQx#~#$a"GYY"&&(!H$HQx#~#$a"GYY"&&( "I"GYY"&&( "I"GYY"&&( "I"GYY"))+ "I"GYY"**, "I"GYY3S#sCc3"OOu}}-DwO,E8,v.tY7J	2eEl^?J<M<Mf<U;V:WX  

!u $ %z GGIr   __main__)__doc__r$   pygamer   r   r   r   r   r   r   r	   r
   r   r   r%   splitabspath__file__main_dirr&   r'   rL   __name__r   r   r   <module>rU      su   
 
  > > >) 77==23A677<<&)Qh zF r   