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 :  /usr/lib64/python3.12/turtledemo/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

�֦i�	��\�dZddl�d�Zd�Zd�Zedk(re�Zee�e�yy)a�       turtle-example-suite:

        xtx_lindenmayer_indian.py

Each morning women in Tamil Nadu, in southern
India, place designs, created by using rice
flour and known as kolam on the thresholds of
their homes.

These can be described by Lindenmayer systems,
which can easily be implemented with turtle
graphics and Python.

Two examples are shown here:
(1) the snake kolam
(2) anklets of Krishna

Taken from Marcia Ascher: Mathematics
Elsewhere, An Exploration of Ideas Across
Cultures

�)�*c�f�t|�D]"}d}|D]}||j||�z}�|}�$|S)N�)�range�get)�seq�replacementRules�n�i�newseq�elements      �//usr/lib64/python3.12/turtledemo/lindenmayer.py�replacersC��
�1�X�����G��.�2�2�7�7�C�C�F����	�
�J�c�v�|D]
}	||��y#t$r	t|||�n#YnxYwY�4wxYw)N)�	TypeError�draw)�commands�rules�bs   rrr&sJ��
��	��E�!�H�J����	�
��U�1�X�u�%��
���		�s�
�	8�.�8�2�8�8c���d�}d�}d�}|||dd�}ddi}d}t||d	�}t�td	�td
d�t	�t�t
d�t�t||�dd
l	m
}|d	�d�}d�}	d�}
||	|
d�}ddd�}d}
t�td�td	d�t	�td�t|
|d	�}t||�td
�y)Nc��td�y�N�-)�right�rr�rzmain.<locals>.r7s	��
�b�	rc��td�yr)�leftrrr�lzmain.<locals>.l:s	���R�rc��td�y)Ng@)�forwardrrr�fzmain.<locals>.f=s	����rzf+f+f--f--f+f+f)�-�+r#rrzb+f+b--f--b+f+bz
b--f--b--f��r��)�sleepc�2�td�tdd�y)N�red�
�Z)�color�circlerrr�Azmain.<locals>.AVs��
�e���r�"�
rc��ddlm}td�d|d�z}t|�t	|d�t|�y)Nr)�sqrt�black��i)�mathr2r.r"r/)r2r s  r�Bzmain.<locals>.BZs0���
�g��
�d�1�g�I����
��q�#����
rc�0�td�td�y)N�greenr,)r.r"rrr�Fzmain.<locals>.Fbs��
�g����r)�arr#�afbfa�	afbfbfbfa)r;r�fbfbfbfbrzDone!)r�reset�speed�tracer�ht�up�backward�downr�timer)r)rr r#�snake_rules�snake_replacementRules�snake_start�drawingr)r0r7r:�
krishna_rules�krishna_replacementRules�
krishna_starts              r�mainrN1s�������a�Q�,=�>�K�!�#4�5���K��k�#9�1�=�G�	�G�	�!�H�
�1�Q�K��D��D��S�M��F���+���	�!�H������q�)�M�&-�[�B���M�	�G�	�!�H�
�1�Q�K��D���H��m�%=�q�A�G���-� �
�1�I�r�__main__N)	�__doc__�turtlerrrN�__name__�msg�print�mainlooprrr�<module>rVsB���4���A�F�Z��
�&�C�	�#�J��J�r

Al-HUWAITI Shell