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_planet_and_moon.pyc
ó
Afc@s”dZddlmZmZmZmZddlmZdZ	de
fd„ƒYZdefd„ƒYZd	„Z
ed
kre
ƒeƒndS(s°       turtle-example-suite:

        tdemo_planets_and_moon.py

Gravitational system simulation using the
approximation method from Feynman-lectures,
p.9-8, using turtlegraphics.

Example: heavy central body, light planet,
very light moon!
Planet has a circular orbit, moon a stable
orbit around the planet.

You can hold the movement temporarily by
pressing the left mouse button with the
mouse over the scrollbar of the canvas.

iÿÿÿÿ(tShapetTurtletmainlooptVec2D(tsleepitGravSyscBs#eZd„Zd„Zd„ZRS(cCsg|_d|_d|_dS(Nig{®Gáz„?(tplanetstttdt(tself((s9/usr/lib64/python2.7/Demo/turtle/tdemo_planet_and_moon.pyt__init__s		cCs"x|jD]}|jƒq
WdS(N(Rtinit(R	tp((s9/usr/lib64/python2.7/Demo/turtle/tdemo_planet_and_moon.pyRscCsKxDtdƒD]6}|j|j7_x|jD]}|jƒq/Wq
WdS(Ni'(trangeRRRtstep(R	tiR((s9/usr/lib64/python2.7/Demo/turtle/tdemo_planet_and_moon.pytstart!s(t__name__t
__module__R
RR(((s9/usr/lib64/python2.7/Demo/turtle/tdemo_planet_and_moon.pyRs		tStarcBs,eZd„Zd„Zd„Zd„ZRS(cCsptj|d|ƒ|jƒ||_|j|ƒ||_|jj|ƒ||_|j	dƒ|j
ƒdS(Ntshapetuser(RR
tpenuptmtsetpostvRtappendtgravSyst
resizemodetpendown(R	RtxRRR((s9/usr/lib64/python2.7/Demo/turtle/tdemo_planet_and_moon.pyR
(s
	
		
cCs:|jj}|jƒ|_|jd||j|_dS(Ngà?(RRtacctaR(R	R((s9/usr/lib64/python2.7/Demo/turtle/tdemo_planet_and_moon.pyR2scCsrtddƒ}x\|jjD]N}||kr|jƒ|jƒ}|t|jt|ƒd|7}qqW|S(Nii(tVecRRtpostGRtabs(R	R tplanetR((s9/usr/lib64/python2.7/Demo/turtle/tdemo_planet_and_moon.pyR6s*cCs’|jj}|j|jƒ||jƒ|jjj|ƒdkrh|j|j|jjdƒƒn|j	ƒ|_
|j||j
|_dS(Ni(RRRR"RRtindext
setheadingttowardsRR (R	R((s9/usr/lib64/python2.7/Demo/turtle/tdemo_planet_and_moon.pyR=s#(RRR
RRR(((s9/usr/lib64/python2.7/Demo/turtle/tdemo_planet_and_moon.pyR's	
		cCsútƒ}|jƒ|jddƒ|jƒ|jƒ|jdƒ|jdƒ|jƒ|jddƒ|j	ƒ|j
ƒ}|jƒ|jddƒ|j	ƒ|j
ƒ}tdƒ}|j|dƒ|j|dƒ|j
ƒjd|ƒ|jd	dƒtƒ}td
tddƒtddƒ|dƒ}|jd
ƒ|jdƒ|jƒtdtddƒtddƒ|dƒ}|jdƒ|jdƒtd	tddƒtddƒ|dƒ}|jdƒ|jdƒ|jƒ|jƒdS(NiiiZi´tcompoundtorangetblueR%ii@BgÀtcircletyellowgÍÌÌÌÌÌü?iÔ0iÒiÃtgreengš™™™™™é?iÜi'gà?sDone!(Rtresetttracerthttputfdtltt
begin_polyR,tend_polytget_polyRtaddcomponentt	getscreentregister_shapeRRR!tcolort	shapesizetpencolorRR(tstm1tm2tplanetshapetgstsuntearthtmoon((s9/usr/lib64/python2.7/Demo/turtle/tdemo_planet_and_moon.pytmainGsD	








	*


*

*



t__main__N(t__doc__tturtleRRRRR!ttimeRR#tobjectRRRFR(((s9/usr/lib64/python2.7/Demo/turtle/tdemo_planet_and_moon.pyt<module>s" 	'