Remove -1 in sparkles mode causing the last LED to be ignored

This commit is contained in:
Pierrick C 2018-11-19 11:53:22 +01:00
parent 66ec8247da
commit 73aeb9e56a
1 changed files with 1 additions and 1 deletions

View File

@ -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