Skip to content

Commit 47986b7

Browse files
committed
changes
1 parent 592b055 commit 47986b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PyRuler_Simon_Game/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def wheel(pos):
5151
def rainbow_cycle(wait):
5252
for j in range(255):
5353
for i in range(len(pixels)):
54-
rc_index = (i * 256 // 1) + j
54+
rc_index = (i * 256 // len(pixels)) + j
5555
pixels[i] = wheel(rc_index & 255)
5656
time.sleep(wait)
5757

0 commit comments

Comments
 (0)