AlkantarClanX12
Current Path : /lib64/python3.8/turtledemo/__pycache__/ |
Current File : //lib64/python3.8/turtledemo/__pycache__/chaos.cpython-38.opt-1.pyc |
U e5d� � @ sd d dl T dZdd� Zdd� Zdd� Zd d � Zdd� Zd d� Zdd� Zdd� Z e dkr`e � e� dS )� )�*�P c C s d| d| S )N�333333@� � ��xr r �(/usr/lib64/python3.8/turtledemo/chaos.py�f s r c C s d| | d S )Nr � r r r r r �g s r c C s d| d| | S )Nr r r r r r �h s r c C s t � t| |� d S �N)Zpenup�goto)r �yr r r �jumpto s r c C s t | |� t� t||� d S r )r �pendownr )Zx1Zy1Zx2Zy2r r r �line s r c C s$ t ddtd d� t dddd� d S )N���r r 皙������皙�����?)r �Nr r r r �coosys s r c C sT t |� |}td|� t� td� tt�D ]"}| |�}t|d |� td� q,d S )Nr � r )Zpencolorr r �dot�ranger r )Zfun�startZcolorr �ir r r �plot s r c C sx t � tddtd d� td� t� t� ttdd� ttdd� tt dd � t d �D ]} td| dtd d� qXdS ) Ng �r r r r gffffff�?ZblueZgreenZred�d g �?zDone!)�resetZsetworldcoordinatesr ZspeedZ hideturtler r r r r r )�sr r r �main+ s r"