o ­=?hQã@s\dZddlmZmZmZddlmZmZdd„Z dd„Z e dkr,e ƒZ e e ƒeƒd Sd S) 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(). é)ÚScreenÚTurtleÚmainloop)Ú perf_counterÚsleepcCs˜|g}td|ƒD]}| ¡}| d|¡| |¡|}qt|ƒD](}t|d|ƒ|d}|D]}| d|¡| d|d|¡| |¡q1q!dS)Nég€v@g@gffffffæ?r)ÚrangeZcloneZrtÚappendÚabsÚpencolorÚfd)ÚpÚneZszZ turtlelistÚiÚqÚcÚt©rú9/opt/alt/python310/lib64/python3.10/turtledemo/rosette.pyÚmn_ecks   ýürcCsÎtƒ}| d¡tƒ}| d¡| ¡| d¡| d¡| dd¡tƒ}t |ddƒtƒ}||}t dƒtƒ}t dd „|  ¡Dƒƒr\|  ¡D]}|  ¡qJt dd „|  ¡DƒƒsFtƒ}d |||S) NZblackrZredéé$ércss|]}| ¡VqdS)N)Zundobufferentries)Ú.0rrrrÚ 7s€zmain..zruntime: %.3f sec)rZbgcolorrZspeedZ hideturtler ZpensizeZtracerÚclockrrÚanyZturtlesZundo)Úsr ZatZetZz1rrrrÚmain$s(        þrÚ__main__N)Ú__doc__ZturtlerrrÚtimerrrrrÚ__name__ÚmsgÚprintrrrrÚs ý