Compare commits
No commits in common. "86d41e5057fa582d0f53b318194fc36c6f0eccec" and "61ea1e145334407afdf4d23014c68478ef753099" have entirely different histories.
86d41e5057
...
61ea1e1453
1 changed files with 2 additions and 3 deletions
5
wheel.py
5
wheel.py
|
@ -69,11 +69,10 @@ while running:
|
||||||
t = time.time() - t0
|
t = time.time() - t0
|
||||||
bs_scale = (random.random() + 1)
|
bs_scale = (random.random() + 1)
|
||||||
if t < 6.2831 * bs_scale:
|
if t < 6.2831 * bs_scale:
|
||||||
#d_ang = (math.cos(t + 3.1415 * bs_scale) + 1) / (t + 1)
|
d_ang = (math.cos(t + 3.1415 * bs_scale) + 1) / (t + 1)
|
||||||
d_ang = (math.e**(-2*t)) * (math.cos(0.25*t*bs_scale) + 1)
|
|
||||||
ang += d_ang * (random.random() / 2 + 1)
|
ang += d_ang * (random.random() / 2 + 1)
|
||||||
else:
|
else:
|
||||||
i = int(-((ang + (360/len(items)/2)) % 360) / (360 / len(items)))
|
i = int(-(ang % 360) / (360 / len(items)))
|
||||||
print(items[i])
|
print(items[i])
|
||||||
|
|
||||||
bigfont = pygame.font.SysFont(None, 112)
|
bigfont = pygame.font.SysFont(None, 112)
|
||||||
|
|
Loading…
Reference in a new issue