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

Function inflatedart

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

Source from the content-addressed store, hash-verified

66 lt(36)
67
68def inflatedart(l, n):
69 if n == 0:
70 px, py = pos()
71 h, x, y = int(heading()), round(px,3), round(py,3)
72 tiledict[(h,x,y)] = False
73 return
74 fl = f * l
75 inflatekite(fl, n-1)
76 lt(36)
77 fd(l)
78 rt(180)
79 inflatedart(fl, n-1)
80 lt(54)
81 fd(l*d)
82 rt(126)
83 inflatedart(fl, n-1)
84 fd(l)
85 rt(144)
86
87def draw(l, n, th=2):
88 clear()

Callers 2

inflatekiteFunction · 0.85
starFunction · 0.85

Calls 5

posFunction · 0.85
inflatekiteFunction · 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…