| Server IP : 121.121.20.254 / Your IP : 216.73.216.142 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/turtledemo/__pycache__/ |
Upload File : |
R
>lqj� c � � Q s ] QHGsGs ] QHGs Q Q\2 sQ s\ Q6X c \ 2 s
\ \
2 \ 2 P! P! )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 �X ` � \ sQ s]s n Q sQ sQ sQ sQ sQ s Q s
Q sQ sQ
s
U sP! )�Designerc � � U O 2 [ ]2 F D� oU O QU* 2 U O 2 U O U O 2 U2 U O 2 U O
QU* 2 U O ]H2 J� U O 2 U O U2 U O ]$2 U O QU* 2 U O ]�2 U O 2 U O ].U* QU2 U O 2 O P 2 P! )� g�����)P@g �8@g������a@)�up�range�forward�down�wheel�position�backward�right�goto�centerpiece� getscreen�tracer)�self�homePos�scale�is &&& �*C:\Python315\\Lib\turtledemo\bytedesign.py�design�Designer.design s� � ���� ��q��A��L�L����'��I�I�K��J�J�t�}�}���.��G�G�I��M�M�%�%�-�(��J�J�r�N�
�
��� �� � �'���
�
�2�����T�E�\�"��
�
�3��� � ������e��U�E�2��������%� c �d � U O ]62 [ ]2 F D oU O V2 J U O 2 U O ]$2 [ ]2 F D oU O V2 J U O ]$2 [ ]2 F Dd oU O 2 U O ]H2 U O
]U* 2 U O 2 U O ]U* 2 Jf U O ]62 U O 2 O 2 P! )�6 )r r � pentpiecer �left�tripiecer
r r r �update)r �initposr r s &&& r r �Designer.wheel/ s� � ��
�
�2���q��A��N�N�7�*� �� � ��� � �"�
��q��A��M�M�'�)� �� � �"�
��q��A��I�I�K��J�J�r�N��L�L��e��$��G�G�I��M�M�"�u�*�%� �
� � �"�
�������!r c �R � U O 2 oU O 2 U O Q U* 2 U O QU* U2 U O 2 U O U2 U O
U2 U O 2 U O Q U* 2 U O QU* U2 U O 2 U O U2 U O
U2 U O ]H2 U O 2 O 2 P! )g @g �?@)�headingr r �tripolyrr r �
setheading�tripolylr r r! )r r"