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_penrose.pyc
ó
Afc@sdZddlTddlmZmZddlmZmZddZd	ed
edƒZ	d„Z
d
„Zd„Zd„Z
d	d„Zd„Zd„Zd„Zd„Zddedd	d„Zed„Zd„ZedkrþeƒZeƒndS( sŽ       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
 -------------------------------------------
iÿÿÿÿ(t*(tcostpi(tclocktsleepigà?ig@iii
cCsht|}tdƒt|ƒtdƒt|ƒtdƒt|ƒtdƒt|ƒtdƒdS(Ni$ili(tftlttfdtrt(tltfl((s1/usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pytkites








cCsht|}tdƒt|ƒtdƒt|ƒtdƒt|ƒtdƒt|ƒtdƒdS(Ni$i(RRRR(R	R
((s1/usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pytdart%s








cCs|dkratƒ\}}ttƒƒt|dƒt|dƒ}}}tt|||f<dSt|}tdƒt||dƒt	|ƒt
dƒt||dƒtdƒt	|tƒt
dƒt||dƒtdƒt	|ƒt
dƒt||dƒtdƒdS(	Niii$iiii¢i´(
tpostinttheadingtroundtTruettiledictRRtinflatedartRRtinflatekitetd(R	tntpxtpythtxtyR
((s1/usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pyR1s(/








cCsö|dkratƒ\}}ttƒƒt|dƒt|dƒ}}}tt|||f<dSt|}t||dƒtdƒt	|ƒt
dƒt||dƒtdƒt	|tƒt
dƒt||dƒt	|ƒt
dƒdS(	Niiii$i´i6i~i(
R
RRRtFalseRRRRRRRR(R	RRRRRRR
((s1/usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pyRGs"/






cCsªtƒ|t|}t|d|d|ƒxvtD]n}|\}}}t||ƒt|ƒt|r„tdƒtddƒntdƒtddƒtƒq4WdS(	NgY@Rtblackigè?R(igè?i(gè?ii(	tclearRt	shapesizeRtsetpost
setheadingtshapetcolortstamp(R	RtthtkRRR((s1/usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pytdrawZs






cCs2x+tdƒD]}t||ƒtdƒq
WdS(NiiH(trangeRR(R	Rti((s1/usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pytsunjs
cCs2x+tdƒD]}t||ƒtdƒq
WdS(NiiH(R(RR(R	RR)((s1/usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pytstaros
cCshtdƒtƒtdƒtƒtdtƒƒtƒtdƒtƒtdtƒƒtdƒdS(NiidRRi(ttracert
begin_polyRtend_polytregister_shapetget_polyR(((s1/usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pyt
makeshapests


cCs*tƒtƒtƒtƒtdƒdS(Ntuser(tresetthttpuR1t
resizemode(((s1/usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pytstart€s
iÈiicCsùt|ƒtdƒiatƒ}tdƒ|||ƒtƒ}t|||ƒtdƒtƒ}d||GHd||GHd||GHtgtD]}t|r—|^q—ƒ}	tgtD]}t|sÀ|^qÀƒ}
d|	|
|	|
fGHdS(NiisCalculation:   %7.4f ssDrawing:  %7.4f ssTogether: %7.4f ss"%d kites and %d darts = %d pieces.(tgotoR!RRR,R'tlen(R	RtfuntstartposR%tatbtcRtnktnd((s1/usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pyttest‡s 

	

	
	


))cCsktƒx]tdƒD]O}tƒ}td||ƒtƒ}||}|dkrtd|ƒqqWdS(Nii,i(R7R(RRAR(R:R)R<R=tt((s1/usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pytdemošs		
cCsŒtdƒtdddƒttƒtdƒttƒtdƒtddƒtdddƒtd	d
dddƒt	ddddƒdS(Ntlogog333333Ó?iiRi8ÿÿÿgffffffæ?isPlease wait...taligntcentertfontsArial Blacki$tboldiXiR;iFiutDone(sArial Blacki$RH(iFiu(
tmodetbgcolorRCR*RR+tpencolorR8twriteRA(((s1/usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pytmain¤s





	
t__main__Ng¨ô—›wã@gPé/7ïÆó?(ii(t__doc__tturtletmathRRttimeRRRRRRRRR'R*R+R1R7RARCRNt__name__tmsgtmainloop(((s1/usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pyt<module>s(