7M_8dZddlmZmZmZddlmZmZdZ dZ e dkr!e Z e e edSdS)aF turtle-example-suite: tdemo_wikipedia3.py This example is inspired by the Wikipedia article on turtle graphics. (See example wikipedia1 for URLs) First we create (ne-1) (i.e. 35 in this example) copies of our first turtle p. Then we let them perform their steps in parallel. Followed by a complete undo(). )ScreenTurtlemainloop) perf_countersleepc|g}td|D]E}|}|d|z |||}Ft|D]i}t |dz |z |dzz }|D]I}|d|z |d|z d|||JjdS)Ngv@g@gffffff?r)rangeclonertappendabspencolorfd)pnesz turtlelistiqcts 9/opt/alt/python311/lib64/python3.11/turtledemo/rosette.pymn_eckrsJ 1R[[ GGII U2X!  2YY 3qMM2b5 !  A DDbMMM JJqs1Q    DDHHHH  ct}|dt}|d||d|d|ddt}t|ddt}||z }tdt}td| DrV| D]}| td| DVt}d ||z|z zS) Nblackrred$r c3>K|]}|VdS)N)undobufferentries).0rs r zmain..7s. 9 9a!!## 9 9 9 9 9 9rzruntime: %.3f sec)rbgcolorrspeed hideturtlerpensizetracerclockrranyturtlesundo)sratetz1rs rmainr3$sIAIIg hhAGGAJJJLLNNNJJuIIaLLLHHRNNN B 1b" B BB !HHH B 9 9QYY[[ 9 9 9 9 9  A FFHHHH  9 9QYY[[ 9 9 9 9 9 B "R%( ++r__main__N)__doc__turtlerrrtimerr+rrr3__name__msgprintrrr<s,+++++++++--------",,,4 z $&&C E#JJJ HJJJJJr