Your IP : 18.220.13.15
U
e5d� � @ sT d dl mZmZ d dlmZ G dd� de�Zdd� ZedkrPe� Z e
e � e� dS ) � )�Turtle�mainloop)�perf_counterc @ sT e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dd� Z
dd� ZdS )�Designerc C s� | � � td�D ]J}| �d| � | �� | �| �� |� | � � | �d| � | �d� q| � � | �|� | �d� | �d| � | �d� | �� | � d| d|� | �
� �d � d S )
N� g�����)P@�H �$ g �8@�� �. g������a@T)�up�range�forward�down�wheel�position�backward�right�goto�centerpiece� getscreen�tracer)�selfZhomePos�scale�i� r �-/usr/lib64/python3.8/turtledemo/bytedesign.py�design s
zDesigner.designc C s� | � d� td�D ]}| �||� q| �� | �d� td�D ]}| �||� q>| �d� td�D ]:}| �� | � d� | �d| � | �� | �d| � qb| �d� | � � �
� d S )N�6 � r r r � )r r � pentpiecer �left�tripiecer
r r r �update)r �initposr r r r r r 2 s
zDesigner.wheelc C s� | � � }| �� | �d| � | �d| |� | �� | �|� | �|� | �� | �d| � | �d| |� | �� | �|� | �|� | �d� | � � �
� d S )Ng @g �?@r )�headingr r �tripolyrr r �
setheading�tripolylr! r r# )r r$ r �oldhr r r r"