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

Function clockface

tools/python-3.11.9-amd64/Lib/turtledemo/clock.py:43–54  ·  view source on GitHub ↗
(radius)

Source from the content-addressed store, hash-verified

41 register_shape(name, hand_form)
42
43def clockface(radius):
44 reset()
45 pensize(7)
46 for i in range(60):
47 jump(radius)
48 if i % 5 == 0:
49 fd(25)
50 jump(-radius-25)
51 else:
52 dot(3)
53 jump(-radius)
54 rt(6)
55
56def setup():
57 global second_hand, minute_hand, hour_hand, writer

Callers 1

setupFunction · 0.85

Calls 3

resetFunction · 0.85
jumpFunction · 0.85
fdFunction · 0.85

Tested by

no test coverage detected