Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 3.138.121.79
66 Domain
8.0.30
amvm
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib64 /
python2.7 /
Demo /
turtle /
[ HOME SHELL ]
Name
Size
Permission
Action
about_turtle.txt
3.44
KB
-rw-r--r--
about_turtledemo.txt
302
B
-rw-r--r--
demohelp.txt
2.38
KB
-rw-r--r--
tdemo_I_dontlike_tiltdemo.py
1.05
KB
-rw-r--r--
tdemo_I_dontlike_tiltdemo.pyc
1.62
KB
-rw-r--r--
tdemo_I_dontlike_tiltdemo.pyo
1.62
KB
-rw-r--r--
tdemo_bytedesign.py
4.12
KB
-rw-r--r--
tdemo_bytedesign.pyc
5.19
KB
-rw-r--r--
tdemo_bytedesign.pyo
5.19
KB
-rw-r--r--
tdemo_chaos.py
953
B
-rw-r--r--
tdemo_chaos.pyc
2.24
KB
-rw-r--r--
tdemo_chaos.pyo
2.24
KB
-rw-r--r--
tdemo_clock.py
2.95
KB
-rw-r--r--
tdemo_clock.pyc
4.38
KB
-rw-r--r--
tdemo_clock.pyo
4.38
KB
-rw-r--r--
tdemo_colormixer.py
1.31
KB
-rw-r--r--
tdemo_colormixer.pyc
2.31
KB
-rw-r--r--
tdemo_colormixer.pyo
2.31
KB
-rw-r--r--
tdemo_fractalcurves.py
3.33
KB
-rw-r--r--
tdemo_fractalcurves.pyc
3.44
KB
-rw-r--r--
tdemo_fractalcurves.pyo
3.44
KB
-rw-r--r--
tdemo_lindenmayer_indian.py
2.38
KB
-rw-r--r--
tdemo_lindenmayer_indian.pyc
3.52
KB
-rw-r--r--
tdemo_lindenmayer_indian.pyo
3.52
KB
-rw-r--r--
tdemo_minimal_hanoi.py
1.92
KB
-rw-r--r--
tdemo_minimal_hanoi.pyc
3.5
KB
-rw-r--r--
tdemo_minimal_hanoi.pyo
3.5
KB
-rw-r--r--
tdemo_nim.py
6.43
KB
-rw-r--r--
tdemo_nim.pyc
9.16
KB
-rw-r--r--
tdemo_nim.pyo
9.16
KB
-rw-r--r--
tdemo_paint.py
1.1
KB
-rw-r--r--
tdemo_paint.pyc
1.7
KB
-rw-r--r--
tdemo_paint.pyo
1.7
KB
-rw-r--r--
tdemo_peace.py
1.09
KB
-rw-r--r--
tdemo_peace.pyc
1.41
KB
-rw-r--r--
tdemo_peace.pyo
1.41
KB
-rw-r--r--
tdemo_penrose.py
3.45
KB
-rw-r--r--
tdemo_penrose.pyc
5.86
KB
-rw-r--r--
tdemo_penrose.pyo
5.86
KB
-rw-r--r--
tdemo_planet_and_moon.py
2.77
KB
-rw-r--r--
tdemo_planet_and_moon.pyc
4.44
KB
-rw-r--r--
tdemo_planet_and_moon.pyo
4.44
KB
-rw-r--r--
tdemo_tree.py
1.38
KB
-rw-r--r--
tdemo_tree.pyc
2.07
KB
-rw-r--r--
tdemo_tree.pyo
2.07
KB
-rw-r--r--
tdemo_wikipedia.py
1.32
KB
-rw-r--r--
tdemo_wikipedia.pyc
1.91
KB
-rw-r--r--
tdemo_wikipedia.pyo
1.91
KB
-rw-r--r--
tdemo_yinyang.py
808
B
-rw-r--r--
tdemo_yinyang.pyc
1.29
KB
-rw-r--r--
tdemo_yinyang.pyo
1.29
KB
-rw-r--r--
turtle.cfg
160
B
-rw-r--r--
turtleDemo.py
9.94
KB
-rw-r--r--
turtleDemo.pyc
9.97
KB
-rw-r--r--
turtleDemo.pyo
9.97
KB
-rw-r--r--
turtledemo_two_canvases.py
885
B
-rw-r--r--
turtledemo_two_canvases.pyc
1.22
KB
-rw-r--r--
turtledemo_two_canvases.pyo
1.22
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tdemo_bytedesign.py
#! /usr/bin/env python """ turtle-example-suite: tdemo_bytedesign.py An example adapted from the example-suite of PythonCard's turtle graphcis. It's based on an article in BYTE magazine Problem Solving with Logo: Using Turtle Graphics to Redraw a Design November 1982, p. 118 - 134 ------------------------------------------- Due to the statement t.delay(0) in line 152, which sets the animation delay to 0, this animation runs in "line per line" mode as fast as possible. """ import math from turtle import Turtle, mainloop from time import clock # wrapper for any additional drawing routines # that need to know about each other class Designer(Turtle): def design(self, homePos, scale): self.up() for i in range(5): self.forward(64.65 * scale) self.down() self.wheel(self.position(), scale) self.up() self.backward(64.65 * scale) self.right(72) self.up() self.goto(homePos) self.right(36) self.forward(24.5 * scale) self.right(198) self.down() self.centerpiece(46 * scale, 143.4, scale) self.tracer(True) def wheel(self, initpos, scale): self.right(54) for i in range(4): self.pentpiece(initpos, scale) self.down() self.left(36) for i in range(5): self.tripiece(initpos, scale) self.left(36) for i in range(5): self.down() self.right(72) self.forward(28 * scale) self.up() self.backward(28 * scale) self.left(54) self.getscreen().update() def tripiece(self, initpos, scale): oldh = self.heading() self.down() self.backward(2.5 * scale) self.tripolyr(31.5 * scale, scale) self.up() self.goto(initpos) self.setheading(oldh) self.down() self.backward(2.5 * scale) self.tripolyl(31.5 * scale, scale) self.up() self.goto(initpos) self.setheading(oldh) self.left(72) self.getscreen().update() def pentpiece(self, initpos, scale): oldh = self.heading() self.up() self.forward(29 * scale) self.down() for i in range(5): self.forward(18 * scale) self.right(72) self.pentr(18 * scale, 75, scale) self.up() self.goto(initpos) self.setheading(oldh) self.forward(29 * scale) self.down() for i in range(5): self.forward(18 * scale) self.right(72) self.pentl(18 * scale, 75, scale) self.up() self.goto(initpos) self.setheading(oldh) self.left(72) self.getscreen().update() def pentl(self, side, ang, scale): if side < (2 * scale): return self.forward(side) self.left(ang) self.pentl(side - (.38 * scale), ang, scale) def pentr(self, side, ang, scale): if side < (2 * scale): return self.forward(side) self.right(ang) self.pentr(side - (.38 * scale), ang, scale) def tripolyr(self, side, scale): if side < (4 * scale): return self.forward(side) self.right(111) self.forward(side / 1.78) self.right(111) self.forward(side / 1.3) self.right(146) self.tripolyr(side * .75, scale) def tripolyl(self, side, scale): if side < (4 * scale): return self.forward(side) self.left(111) self.forward(side / 1.78) self.left(111) self.forward(side / 1.3) self.left(146) self.tripolyl(side * .75, scale) def centerpiece(self, s, a, scale): self.forward(s); self.left(a) if s < (7.5 * scale): return self.centerpiece(s - (1.2 * scale), a, scale) def main(): t = Designer() t.speed(0) t.hideturtle() t.getscreen().delay(0) t.tracer(0) at = clock() t.design(t.position(), 2) et = clock() return "runtime: %.2f sec." % (et-at) if __name__ == '__main__': msg = main() print msg mainloop()
Close