diff --git a/code/light_modes.py b/code/light_modes.py index 8dedc65..5c11a1d 100644 --- a/code/light_modes.py +++ b/code/light_modes.py @@ -57,7 +57,7 @@ def sparkles(np_strp, col): np_strp.fill((0, 0, 0)) for _ in range(int(np_strp.n / 4)): - pix = int(urandom.getrandbits(8) / 256 * (np_strp.n - 1)) + pix = int(urandom.getrandbits(8) / 256 * (np_strp.n)) print(pix) np_strp[pix] = col