MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / demo

Function demo

tools/python-3.11.9-amd64/Lib/turtledemo/penrose.py:148–156  ·  view source on GitHub ↗
(fun=sun)

Source from the content-addressed store, hash-verified

146 print("%d kites and %d darts = %d pieces." % (nk, nd, nk+nd))
147
148def demo(fun=sun):
149 start()
150 for i in range(8):
151 a = clock()
152 test(300, i, fun)
153 b = clock()
154 t = b - a
155 if t < 2:
156 sleep(2 - t)
157
158def main():
159 #title("Penrose-tiling with kites and darts.")

Callers 1

mainFunction · 0.70

Calls 3

startFunction · 0.70
testFunction · 0.70
sleepFunction · 0.50

Tested by

no test coverage detected