Remove -1 in sparkles mode causing the last LED to be ignored
This commit is contained in:
parent
66ec8247da
commit
73aeb9e56a
@ -57,7 +57,7 @@ def sparkles(np_strp, col):
|
|||||||
np_strp.fill((0, 0, 0))
|
np_strp.fill((0, 0, 0))
|
||||||
|
|
||||||
for _ in range(int(np_strp.n / 4)):
|
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)
|
print(pix)
|
||||||
np_strp[pix] = col
|
np_strp[pix] = col
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user