We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 592b055 commit 47986b7Copy full SHA for 47986b7
1 file changed
PyRuler_Simon_Game/code.py
@@ -51,7 +51,7 @@ def wheel(pos):
51
def rainbow_cycle(wait):
52
for j in range(255):
53
for i in range(len(pixels)):
54
- rc_index = (i * 256 // 1) + j
+ rc_index = (i * 256 // len(pixels)) + j
55
pixels[i] = wheel(rc_index & 255)
56
time.sleep(wait)
57
0 commit comments