AlkantarClanX12

Your IP : 18.191.178.16


Current Path : /usr/lib64/python3.8/turtledemo/__pycache__/
Upload File :
Current File : //usr/lib64/python3.8/turtledemo/__pycache__/lindenmayer.cpython-38.opt-2.pyc

U

e5d�	�@s@ddlTdd�Zdd�Zdd�Zedkr<e�Zee�e�d	S)
�)�*cCs4t|�D]&}d}|D]}||�||�}q|}q|S)N�)�range�get)�seqZreplacementRules�n�iZnewseqZelement�r	�./usr/lib64/python3.8/turtledemo/lindenmayer.py�replacesrc
CsR|D]H}z||�Wqtk
rJzt|||�WnYnXYqXqdS)N)�	TypeError�draw)ZcommandsZrules�br	r	r
r
&sr
cCsdd�}dd�}dd�}|||dd�}d	d
i}d}t||d�}t�td�td
d�t�t�td�t�t||�ddl	m
}|d�dd�}dd�}	dd�}
||	|
d�}ddd�}d}
t�td�tdd�t�td�t|
|d�}t||�td
�dS)NcSstd�dS�N�-)�rightr	r	r	r
�r7szmain.<locals>.rcSstd�dSr)�leftr	r	r	r
�l:szmain.<locals>.lcSstd�dS)Ng@)�forwardr	r	r	r
�f=szmain.<locals>.fzf+f+f--f--f+f+f)�-�+rrrzb+f+b--f--b+f+bz
b--f--b--f��r��)�sleepcSstd�tdd�dS)NZred�
�Z)�color�circler	r	r	r
�AVszmain.<locals>.AcSs>ddlm}td�d|d�}t|�t|d�t|�dS)Nr)�sqrtZblack��i)Zmathr"rrr )r"rr	r	r
�BZs
zmain.<locals>.BcSstd�td�dS)NZgreenr)rrr	r	r	r
�Fbszmain.<locals>.F)�arrZafbfaZ	afbfbfbfa)r'rZfbfbfbfbrzDone!)r�resetZspeedZtracerZhtZupZbackwardZdownr
�timerr)rrrZsnake_rulesZsnake_replacementRulesZsnake_startZdrawingrr!r%r&Z
krishna_rulesZkrishna_replacementRulesZ
krishna_startr	r	r
�main1s@




r*�__main__N)Zturtlerr
r*�__name__�msg�printZmainloopr	r	r	r
�<module>sC