-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSettings.py
36 lines (36 loc) · 1.24 KB
/
Settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
def main():
print "Mandelbrot Set - Version 2.0.0 - Ian Mallett - March 2008"
print "Ian Mallett"
print ""
print "A good setting for the screen's size is 800x600."
print "A good setting for the image's size is 400x300 for speed and 1600x1200 for nice."
print ""
while True:
width = raw_input("Enter the Screen's Width: ")
try:
width = abs(int(width))
break
except:
print "Well now, let's try that again, shall we?"
while True:
height = raw_input("Enter the Screen's Height: ")
try:
height = abs(int(height))
break
except:
print "Well now, let's try that again, shall we?"
while True:
width2 = raw_input("Enter the Mandelbrot Set Image Width: ")
try:
width2 = abs(int(width2))
break
except:
print "Well now, let's try that again, shall we?"
while True:
height2 = raw_input("Enter the Mandelbrot Set Image Height: ")
try:
height2 = abs(int(height2))
break
except:
print "Well now, let's try that again, shall we?"
return width, height, width2, height2