Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux server335.web-hosting.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : cardxfeb ( 2452)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /lib64/python3.12/turtledemo/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python3.12/turtledemo/__pycache__/penrose.cpython-312.pyc
�

�֦i4
����dZddl�ddlmZmZddlmZmZdZ	dedezdz�zZ
d	�Zd
�Zd�Z
d�Zdd
�Zd�Zd�Zd�Zd�Zddeddfd�Zefd�Zd�Zedk(re�Ze�yy)a�       xturtle-example-suite:

          xtx_kites_and_darts.py

Constructs two aperiodic penrose-tilings,
consisting of kites and darts, by the method
of inflation in six steps.

Starting points are the patterns "sun"
consisting of five kites and "star"
consisting of five darts.

For more information see:
 http://en.wikipedia.org/wiki/Penrose_tiling
 -------------------------------------------
�)�*)�cos�pi)�perf_counter�sleepgP�/7���?���
c���t|z}td�t|�td�t|�td�t|�td�t|�td�y)N�$�l���f�lt�fd�rt��l�fls  �+/usr/lib64/python3.12/turtledemo/penrose.py�kiter�J��	
�Q��B��r�F��q�E��s�G��r�F��r�F��r�F��s�G��q�E��s�G�c���t|z}td�t|�td�t|�td�t|�td�t|�td�y)Nrrrrs  r�dartr%rrc��|dk(rEt�\}}tt��t|d�t|d�}}}dt|||f<yt
|z}t
d�t||dz
�t|�td�t||dz
�t
d�t|tz�td�t||dz
�t
d�t|�td	�t||dz
�t
d�y)
Nrr	Tr�r���)�pos�int�heading�round�tiledictrr�inflatedartrr�inflatekite�d�r�n�px�py�h�x�yrs        rr(r(1s����A�v�����B��g�i�.�%��1�+�u�R��{�a�1�� ��!�A�a����	
�Q��B��r�F���A�a�C���q�E��s�G���A�a�C���r�F��q��s�G��s�G���A�a�C���r�F��q�E��s�G���A�a�C���r�Frc���|dk(rEt�\}}tt��t|d�t|d�}}}dt|||f<yt
|z}t
||dz
�td�t|�td�t||dz
�td�t|tz�td�t||dz
�t|�td	�y)
Nrr	Frrr!�6�~r)r"r#r$r%r&rr(rrrr'r)r*s        rr'r'Gs����A�v�����B��g�i�.�%��1�+�u�R��{�a�1��!��!�A�a����	
�Q��B���A�a�C���r�F��q�E��s�G���A�a�C���r�F��q��s�G��s�G���A�a�C���q�E��s�Grc�*�t�|t|zz}t|dz|dz|�tD]a}|\}}}t	||�t|�t|rt
d�tdd�nt
d�tdd�t��cy)NgY@r�black)r��?rr)r6rr)	�clearr�	shapesizer&�setpos�
setheading�shape�color�stamp)rr+�th�kr.r/r0s       r�drawr@Zs{��	�G�	�A�q�D��A�
�a��g�q��w��#�
�����1�a��q�!���1�
��A�;��&�M��'�<�(��&�M��'�<�(�
��rc�R�td�D]}t||�td��y�N��H)�ranger(r�rr+�is   r�sunrHj�!��
�1�X���A�q��
�2��rc�R�td�D]}t||�td��yrB)rEr'rrFs   r�starrKorIrc��td�t�td�t�t	dt��t�t
d�t�t	dt��td�y)Nr�drrr)�tracer�
begin_polyr�end_poly�register_shape�get_polyr�rr�
makeshapesrTtsJ��
�1�I��L���I��J��6�8�:�&��L���I��J��6�8�:�&�
�1�Irc�j�t�t�t�t�t	d�y)N�user)�reset�ht�purT�
resizemoderSrr�startr[�s��	�G��D��D��L��v�r���)rrc�d�t|�td�iatd�|||�t	|||�td�ttD�cgc]}t|s�
|��c}�}ttD�cgc]}t|r�
|��c}�}t
d||||zfz�ycc}wcc}w)Nrrz"%d kites and %d darts = %d pieces.)�gotor:r&rNr@�len�print)rr+�fun�startposr>r/�nk�nds        r�testrf�s�����N��q�M��H�
�1�I���1�I���A�r�N�
�1�I�	��
1��A�X�a�[�a��
1�	2�B�	��
5��A��!��a��
5�	6�B�	�
.�"�b�"�R�%��
@�A��2��
5s�B(�!B(�9B-�B-c��t�td�D]<}t�}td||�t�}||z
}|dks�/t	d|z
��>y)N�i,r)r[rE�clockrfr)rbrG�a�b�ts     r�demorm�sJ��	�G�
�1�X���G���S�!�S���G��
��E���q�5��!�a�%�L�
rc��td�tddd�tt�t	d�tt
�t
d�tdd�t
ddd�td	d
d��td
dd��y)N�logog333333�?rrr5i8���gffffff�?rzPlease wait...�center)zArial Blackr�bold)�align�fontiXrh)�F�u)rc�Done)
�mode�bgcolorrmrHrrK�pencolorr_�writerfrSrr�mainr{�sg����L��C��a����I�	�!�H���J��W����4�L��S��Q��	�
��:�<���a�)�$�r�__main__N)r)�__doc__�turtle�mathrr�timerrirrr)rrr(r'r@rHrKrTr[rfrmr{�__name__�msg�mainlooprSrr�<module>r�s���� ��-�����A�b�D��G����
�
��,�&� �
�

���!��u��B���
��z��
�&�C��J�r

Al-HUWAITI Shell