Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6cee592

Browse files
Add files via upload
1 parent e3f8411 commit 6cee592

File tree

1 file changed

+110
-0
lines changed

1 file changed

+110
-0
lines changed

‎amun.py

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
import turtle
2+
import math
3+
from time import strftime
4+
from random import *
5+
6+
### Setting up Osiris' Window
7+
8+
wn = turtle.Screen()
9+
osiris = turtle.Turtle()
10+
wn.screensize(10000, 10000)
11+
djet = strftime("%Y-%m-%d %H-%M-%S")
12+
13+
### SCREENSHOT COMMAND ON 'A' KEYBOARD PRESS ###
14+
15+
def ihy():
16+
ts = osiris.getscreen()
17+
osiris.hideturtle()
18+
ts.getcanvas().postscript(file="horus - " + djet +
19+
".eps", width=5000, height=5000)
20+
osiris.showturtle()
21+
print ('screenshot taken')
22+
turtle.onkey(ihy,"a")
23+
turtle.listen()
24+
25+
### CENTRE DOT COMMAND ON 'D' KEYBOARD PRESS ###
26+
27+
def yam():
28+
osiris.penup()
29+
osiris.goto(0,0)
30+
osiris.dot(3,'#0000FF')
31+
32+
turtle.onkey(yam,"d")
33+
turtle.listen()
34+
35+
36+
'''
37+
#############################################################
38+
################## GEOMETRIC DEFINITIONS ####################
39+
################## START ####################
40+
#############################################################
41+
'''
42+
43+
44+
########################################
45+
### Amun = Central Spikes ###
46+
### Creator God, Associated With Ra ###
47+
########################################
48+
49+
### Developed Using These Integars
50+
### (1,10,0,360,40,100,4,'#BFDDE1')
51+
52+
def amun(amun_y=1,amun_no=10,amun_angle_a=0,amun_angle_b=360,
53+
amun_forward_a=40,amun_forward_b=100,
54+
amun_pensize=4,amun_color='#BFDDE1'):
55+
if amun_y == 1:
56+
for amun_a in range(amun_no):
57+
osiris.penup()
58+
osiris.pencolor(amun_color)
59+
osiris.pensize(amun_pensize)
60+
osiris.goto(0,0)
61+
osiris.right(randint(amun_angle_a,amun_angle_b))
62+
osiris.pendown()
63+
osiris.forward(randint(amun_forward_a,amun_forward_b))
64+
osiris.penup()
65+
66+
67+
'''
68+
##############################################
69+
##############################################
70+
##################START#######################
71+
##############################################
72+
##############################################
73+
'''
74+
75+
#####################
76+
#CONFIGURING OSIRIS##
77+
#####################
78+
79+
osiris.speed(2)
80+
def osirisslow():
81+
osiris.speed(1)
82+
def osirismid():
83+
osiris.speed(4)
84+
def osirisquick():
85+
osiris.speed(0)
86+
turtle.onkey(osirisquick,"0")
87+
turtle.onkey(osirismid,"4")
88+
turtle.onkey(osirisslow,"1")
89+
turtle.listen()
90+
osiris.penup()
91+
osiris.setheading(90)
92+
osirisHeadingStart = osiris.heading()
93+
osiris.goto(0,0)
94+
95+
96+
### AMUN ### RANDOM SPIKES ###
97+
amun(amun_y=1,amun_no=18,amun_angle_a=0,amun_angle_b=360,
98+
amun_forward_a=40,amun_forward_b=600,
99+
amun_pensize=2,amun_color='#FF0000')
100+
101+
102+
'''
103+
##################################
104+
##################################
105+
################END###############
106+
##################################
107+
##################################
108+
'''
109+
110+
turtle.done()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /