ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //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