Back to index

python3.2  3.2.2
Functions
turtledemo.yinyang Namespace Reference

Functions

def yin
def main

Function Documentation

Definition at line 40 of file yinyang.py.

00040 
00041 def main():
00042     reset()
00043     yin(200, "black", "white")
00044     yin(200, "white", "black")
00045     ht()
00046     return "Done!"

Here is the call graph for this function:

def turtledemo.yinyang.yin (   radius,
  color1,
  color2 
)

Definition at line 16 of file yinyang.py.

00016 
00017 def yin(radius, color1, color2):
00018     width(3)
00019     color("black", color1)
00020     begin_fill()
00021     circle(radius/2., 180)
00022     circle(radius, 180)
00023     left(180)
00024     circle(-radius/2., 180)
00025     end_fill()
00026     left(90)
00027     up()
00028     forward(radius*0.35)
00029     right(90)
00030     down()
00031     color(color1, color2)
00032     begin_fill()
00033     circle(radius*0.15)
00034     end_fill()
00035     left(90)
00036     up()
00037     backward(radius*0.35)
00038     down()
00039     left(90)

Here is the caller graph for this function: