
   :-oq.                   r    d dl mZmZmZ  G d de      Zd Zd Zedk(  r e       Z e	e        e        yy)    )ScreenTurtlemainloopc                       e Zd Zd Zd Zy)ColorTurtlec                    t        j                  |        | j                  d       | j                  d       | j	                  ddd       | j                  d       g d| _        || _        || j                  |<   | j                  | j                         | j                  d       | j                  d       | j                          | j                  |d       | j                          | j                  d	       | j                          | j                  |       | j                  d
       | j!                  | j"                         y )Nturtleuser      
   )r   r   r   r   Z      gray25)r   __init__shape
resizemode	shapesizepensize_colorxcolorspeedleftpugotopdsetypencolorondragshiftselfr   ys      3/tmp/python/lib/python3.12/turtledemo/colormixer.pyr   zColorTurtle.__init__   s    

8q1RA

4;;

1		"			!A			!			!hDJJ    c           	          | j                  t        dt        |d                   | j                         | j                  | j
                  <   | j                  | j                         t                y )Nr   r   )r   maxminycorr   r   	fillcolor
setbgcolorr"   s      r%   r!   zColorTurtle.shift   sG    		#aAa/""iikDFFt{{#r&   N)__name__
__module____qualname__r   r!    r&   r%   r   r      s     *r&   r   c                      t         j                  t        j                         t        j                         t
        j                                y )N)screenbgcolorredr*   greenbluer0   r&   r%   r,   r,   "   s$    
NN388:uzz|TYY[9r&   c                  n   t               at        j                  d       t        j                  dddd       t	        dd      at	        dd      at	        dd      at                t               } | j                          | j                          | j                  dd	       | j                  d
dd       y)Nr   g333333ӿr   g?g      ?r      gffffff?zDRAG!center)Arial   )bolditalic)alignfont	EVENTLOOP)r   r2   delaysetworldcoordinatesr   r4   r5   r6   r,   r   htr   r   write)writers    r%   mainrG   %   s    XF
LLO
r4C0
a
C2Eq"DLXF
IIK
IIK
KK$
LLx-KLLr&   __main__N)
r	   r   r   r   r   r,   rG   r-   msgprintr0   r&   r%   <module>rK      sE    , +& ::$ z
&C	#JJ r&   