Back to index

python3.2  3.2.2
Functions
turtledemo.peace Namespace Reference

Functions

def main

Function Documentation

Definition at line 18 of file peace.py.

00018 
00019 def main():
00020     peacecolors = ("red3",  "orange", "yellow",
00021                    "seagreen4", "orchid4",
00022                    "royalblue1", "dodgerblue4")
00023 
00024     reset()
00025     s = Screen()
00026     up()
00027     goto(-320,-195)
00028     width(70)
00029 
00030     for pcolor in peacecolors:
00031         color(pcolor)
00032         down()
00033         forward(640)
00034         up()
00035         backward(640)
00036         left(90)
00037         forward(66)
00038         right(90)
00039 
00040     width(25)
00041     color("white")
00042     goto(0,-170)
00043     down()
00044 
00045     circle(170)
00046     left(90)
00047     forward(340)
00048     up()
00049     left(180)
00050     forward(170)
00051     right(45)
00052     down()
00053     forward(170)
00054     up()
00055     backward(170)
00056     left(90)
00057     down()
00058     forward(170)
00059     up()
00060 
00061     goto(0,300) # vanish if hideturtle() is not available ;-)
00062     return "Done!!"

Here is the call graph for this function: