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

Function randomfd

Lib/turtledemo/forest.py:22–25  ·  view source on GitHub ↗
( t, distance, parts, angledist )

Source from the content-addressed store, hash-verified

20 for angle, sizefactor in branchlist ]
21
22def randomfd( t, distance, parts, angledist ):
23 for i in range(parts):
24 t.left(symRandom(angledist))
25 t.forward( (1.0 * distance)/parts )
26
27def tree(tlist, size, level, widthfactor, branchlists, angledist=10, sizedist=5):
28 # benutzt Liste von turtles und Liste von Zweiglisten,

Callers 1

treeFunction · 0.85

Calls 3

symRandomFunction · 0.85
leftMethod · 0.80
forwardMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…