⚝
One Hat Cyber Team
⚝
Your IP:
160.79.108.211
Server IP:
162.254.39.145
Server:
Linux premium289.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib64
/
python3.8
/
turtledemo
/
__pycache__
/
View File Name :
fractalcurves.cpython-38.opt-1.pyc
U e5d� � @ sT d Z ddlT ddlmZmZ G dd� de�Zdd� Ze dkrPe� Z ee � e� d S ) a& turtle-example-suite: tdemo_fractalCurves.py This program draws two fractal-curve-designs: (1) A hilbert curve (in a box) (2) A combination of Koch-curves. The CurvesTurtle class and the fractal-curve- methods are taken from the PythonCard example scripts for turtle-graphics. � )�*)�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 � �<