pattern should be int

This commit is contained in:
jane 2021-05-25 23:32:30 -04:00
parent 5e819c74ed
commit 501c3af95a
1 changed files with 1 additions and 5 deletions

View File

@ -27,11 +27,7 @@ function tick_pattern() {
var b = Math.floor(Math.random() * 100);
for (let i = 0; i < cfg.leds; i++) {
if (i % 3 == 0) {
next_pattern[i] = r;
next_pattern[i + 1] = g;
next_pattern[i + 2] = b;
}
next_pattern[i] = ((r << 8) + g) << 8 + b;
}
}