MCPcopy Index your code
hub / github.com/python/cpython / main

Function main

Lib/turtledemo/colormixer.py:36–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 screen.bgcolor(red.ycor(), green.ycor(), blue.ycor())
35
36def main():
37 global screen, red, green, blue
38 screen = Screen()
39 screen.delay(0)
40 screen.setworldcoordinates(-1, -0.3, 3, 1.3)
41
42 red = ColorTurtle(0, .5)
43 green = ColorTurtle(1, .5)
44 blue = ColorTurtle(2, .5)
45 setbgcolor()
46
47 writer = Turtle()
48 writer.ht()
49 writer.pu()
50 writer.goto(1,1.15)
51 writer.write("DRAG!",align="center",font=("Arial",30,("bold","italic")))
52 return "EVENTLOOP"
53
54if __name__ == "__main__":
55 msg = main()

Callers 1

colormixer.pyFile · 0.70

Calls 8

ScreenFunction · 0.90
TurtleClass · 0.90
ColorTurtleClass · 0.85
setbgcolorFunction · 0.85
delayMethod · 0.80
setworldcoordinatesMethod · 0.80
gotoMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…