관리-도구
편집 파일: fractalcurves.cpython-38.opt-2.pyc
U e5d� � @ sP d dl T d dlmZmZ G dd� de�Zdd� ZedkrLe� Z e e � e� dS ) � )�*)�sleep�perf_counterc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�CurvesTurtlec C s� |dkrd S | � |d � | �||d | � | �|� | �|d � | �||d |� | �|� | �||d |� | �|d � | �|� | �||d | � | � |d � d S )Nr �Z � )�left�hilbertZforward�right)�self�size�levelZparity� r �0/usr/lib64/python3.8/turtledemo/fractalcurves.pyr s zCurvesTurtle.hilbertc C s� dd l }d| |�|j| � }| �� | �|� | �� | �dd|d | � t|�D ] }| �|||� | �d| � q\| � dd|d | � | �� | � |� | �� d S )Nr � � r ih )�mathZsinZpi�pu�fd�pd�rt�range�fractal�ltZbk)r �nZradZlev�dirr Zedge�ir r r � fractalgon/ s zCurvesTurtle.fractalgonc C s� |dk r| � |� d S | �|d |d |� | �d| � | �|d |d |� | �d| � | �|d |d |� | �d| � | �|d |d |� d S )Nr � �<