Back to index

python3.2  3.2.2
Classes | Functions | Variables
turtledemo.colormixer Namespace Reference

Classes

class  ColorTurtle

Functions

def setbgcolor
def main

Variables

tuple msg = main()

Function Documentation

Definition at line 39 of file colormixer.py.

00039 
00040 def main():
00041     global screen, red, green, blue
00042     screen = Screen()
00043     screen.delay(0)
00044     screen.setworldcoordinates(-1, -0.3, 3, 1.3)
00045 
00046     red = ColorTurtle(0, .5)
00047     green = ColorTurtle(1, .5)
00048     blue = ColorTurtle(2, .5)
00049     setbgcolor()
00050 
00051     writer = Turtle()
00052     writer.ht()
00053     writer.pu()
00054     writer.goto(1,1.15)
00055     writer.write("DRAG!",align="center",font=("Arial",30,("bold","italic")))
00056     return "EVENTLOOP"

Here is the call graph for this function:

Definition at line 36 of file colormixer.py.

00036 
00037 def setbgcolor():
00038     screen.bgcolor(red.ycor(), green.ycor(), blue.ycor())

Here is the caller graph for this function:


Variable Documentation

Definition at line 58 of file colormixer.py.