MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / spinner

Function spinner

projects/Fidget Spinner Game/main.py:6–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def spinner():
7 clear()
8 angle = state["turn"] / 10
9 right(angle)
10 forward(100)
11 dot(120, "red")
12 back(100)
13 right(120)
14 forward(100)
15 dot(120, "green")
16 back(100)
17 right(120)
18 forward(100)
19 dot(120, "blue")
20 back(100)
21 right(120)
22 update()
23
24
25def animate():

Callers 1

animateFunction · 0.85

Calls 2

clearFunction · 0.50
updateFunction · 0.50

Tested by

no test coverage detected