+
     Bia                         R t ^ RIHtHt ^ RIHt  ! R R]4      tR t]	R8X  d   ]! 4       t
]! ]
4       ]! 4        R# R# )a  turtledemo/bytedesign.py

An example adapted from the example-suite
of PythonCard's turtle graphics.

It's based on an article in BYTE magazine
Problem Solving with Logo: Using Turtle
Graphics to Redraw a Design
November 1982, p. 118 - 134

-------------------------------------------

Due to the statement

t.delay(0)

in line 152, which sets the animation delay
to 0, this animation runs in "line per line"
mode as fast as possible.
)Turtlemainloop)perf_counterc                   V   a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	 tR
tV tR# )Designerc                   V P                  4        \        ^4       F  pV P                  RV,          4       V P                  4        V P	                  V P                  4       V4       V P                  4        V P                  RV,          4       V P                  ^H4       K  	  V P                  4        V P                  V4       V P                  ^$4       V P                  RV,          4       V P                  ^4       V P                  4        V P                  ^.V,          RV4       V P                  4       P                  R4       R# )   g)P@g     8@ga@TN)uprangeforwarddownwheelpositionbackwardrightgotocenterpiece	getscreentracer)selfhomePosscaleis   &&& ,/usr/lib/python3.14/turtledemo/bytedesign.pydesignDesigner.design   s    	qALL'IIKJJt}}.GGIMM%%-(JJrN  				'

2TE\"

3		eUE2%    c                \   V P                  ^64       \        ^4       F  pV P                  W4       K  	  V P                  4        V P	                  ^$4       \        ^4       F  pV P                  W4       K  	  V P	                  ^$4       \        ^4       Fd  pV P                  4        V P                  ^H4       V P                  ^V,          4       V P                  4        V P                  ^V,          4       Kf  	  V P	                  ^64       V P                  4       P                  4        R# )6   N)r   r
   	pentpiecer   lefttripiecer   r	   r   r   update)r   initposr   r   s   &&& r   r   Designer.wheel/   s    

2qANN7* 				"qAMM') 		"qAIIKJJrNLLe$GGIMM"u*%  			"!r   c                P   V P                  4       pV P                  4        V P                  R V,          4       V P                  RV,          V4       V P	                  4        V P                  V4       V P                  V4       V P                  4        V P                  R V,          4       V P                  RV,          V4       V P	                  4        V P                  V4       V P                  V4       V P                  ^H4       V P                  4       P                  4        R# )g      @g     ?@N)headingr   r   tripolyrr	   r   
setheadingtripolylr    r   r"   )r   r#   r   oldhs   &&& r   r!   Designer.tripieceA   s    ||~		cEk"dUlE*			'		cEk"dUlE*			'		"!r   c                `   V P                  4       pV P                  4        V P                  ^V,          4       V P                  4        \	        ^4       F,  pV P                  ^V,          4       V P                  ^H4       K.  	  V P                  ^V,          ^KV4       V P                  4        V P                  V4       V P                  V4       V P                  ^V,          4       V P                  4        \	        ^4       F,  pV P                  ^V,          4       V P                  ^H4       K.  	  V P                  ^V,          ^KV4       V P                  4        V P                  V4       V P                  V4       V P                  ^H4       V P                  4       P                  4        R# )   N)r&   r	   r   r   r
   r   pentrr   r(   pentlr    r   r"   )r   r#   r   r*   r   s   &&&  r   r   Designer.pentpieceR   s&   ||~	R%Z 		qALLe$JJrN  	

2:r5)			'R%Z 		qALLe$JJrN  	

2:r5)			'		"!r   c                    V^V,          8  d   R# V P                  V4       V P                  V4       V P                  VRV,          ,
          W#4       R#    NgRQ?)r   r    r/   r   sideangr   s   &&&&r   r/   Designer.pentlj   s>    1u9vT		#

43;'4r   c                    V^V,          8  d   R# V P                  V4       V P                  V4       V P                  VRV,          ,
          W#4       R# r2   )r   r   r.   r4   s   &&&&r   r.   Designer.pentrp   s>    1u9vT

3

43;'4r   c                @   V^V,          8  d   R# V P                  V4       V P                  ^o4       V P                  VR,          4       V P                  ^o4       V P                  VR,          4       V P                  ^4       V P                  VR,          V4       R#    Ng{Gz?g?g      ?)r   r   r'   r   r5   r   s   &&&r   r'   Designer.tripolyrv   so    1u9vT

3TD[!

3TCZ 

3dSj%(r   c                @   V^V,          8  d   R# V P                  V4       V P                  ^o4       V P                  VR,          4       V P                  ^o4       V P                  VR,          4       V P                  ^4       V P                  VR,          V4       R# r;   )r   r    r)   r=   s   &&&r   r)   Designer.tripolyl   so    1u9vT		#TD[!		#TCZ 		#dSj%(r   c                    V P                  V4       V P                  V4       VR V,          8  d   R# V P                  VRV,          ,
          W#4       R# )g      @Ng333333?)r   r    r   )r   sar   s   &&&&r   r   Designer.centerpiece   s?    Q1ecEk*A5r    N)__name__
__module____qualname____firstlineno__r   r   r!   r   r/   r.   r'   r)   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s7     &$"$"""055))6 6r   r   c                  Z   \        4       p V P                  ^ 4       V P                  4        V P                  4       P	                  ^ 4       V P                  4       P                  ^ 4       \        4       pV P                  V P                  4       ^4       \        4       pRW!,
          ,          # )    zruntime: %.2f sec.)	r   speed
hideturtler   delayr   clockr   r   )tatets      r   mainrV      st    
AGGAJLLNKKMKKM	BHHQZZ\1	B25))r   __main__N)__doc__turtler   r   timer   rR   r   rV   rF   msgprintrE   r   r   <module>r]      sH   * $ &s6v s6j	* z
&C	#JJ r   