MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / main

Function main

src/gamesbyexample/fractalnonuniformtree.py:15–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13turtle.tracer(10000, 0) # Make the turtle draw faster.
14
15def main():
16 seed = 0
17 while True:
18 # Get psuedorandom numbers for the branch properties:
19 random.seed(seed)
20 drawTree(0, -310, 90, seed)
21 time.sleep(2)
22 turtle.clear()
23 seed += 1
24
25 turtle.update() # Finish drawing the screen.
26 turtle.exitonclick() # When user clicks on the window, close it.
27
28
29def drawBranch(x, y, direction, branchLength):

Callers 1

Calls 2

drawTreeFunction · 0.85
clearMethod · 0.80

Tested by

no test coverage detected