MCPcopy Create free account
hub / github.com/python/cpython / inflatekite

Function inflatekite

Lib/turtledemo/penrose.py:46–66  ·  view source on GitHub ↗
(l, n)

Source from the content-addressed store, hash-verified

44 rt(144)
45
46def inflatekite(l, n):
47 if n == 0:
48 px, py = pos()
49 h, x, y = int(heading()), round(px,3), round(py,3)
50 tiledict[(h,x,y)] = True
51 return
52 fl = f * l
53 lt(36)
54 inflatedart(fl, n-1)
55 fd(l)
56 rt(144)
57 inflatekite(fl, n-1)
58 lt(18)
59 fd(l*d)
60 rt(162)
61 inflatekite(fl, n-1)
62 lt(36)
63 fd(l)
64 rt(180)
65 inflatedart(fl, n-1)
66 lt(36)
67
68def inflatedart(l, n):
69 if n == 0:

Callers 2

inflatedartFunction · 0.85
sunFunction · 0.85

Calls 5

posFunction · 0.85
inflatedartFunction · 0.85
fdFunction · 0.85
ltFunction · 0.50
rtFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…